To: vim-dev@vim.org Subject: Patch 6.1.178 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit ------------ Patch 6.1.178 Problem: When 'expandtab' is set "r" still expands the Tab. (Bruce deVisser) Solution: Replace with a literal Tab. Files: src/normal.c *** ../vim61.177/src/normal.c Thu Aug 22 20:34:03 2002 --- src/normal.c Fri Sep 6 21:43:53 2002 *************** *** 5880,5891 **** } /* ! * Replacing with a TAB is done by edit(), because it is complicated when ! * 'expandtab', 'smarttab' or 'softtabstop' is set. * Other characters are done below to avoid problems with things like * CTRL-V 048 (for edit() this would be R CTRL-V 0 ESC). */ ! if (cap->nchar == '\t' && (curbuf->b_p_et || p_sta)) { stuffnumReadbuff(cap->count1); stuffcharReadbuff('R'); --- 5887,5898 ---- } /* ! * Replacing with a TAB is done by edit() when it is complicated because ! * 'expandtab' or 'smarttab' is set. CTRL-V TAB inserts a literal TAB. * Other characters are done below to avoid problems with things like * CTRL-V 048 (for edit() this would be R CTRL-V 0 ESC). */ ! if (had_ctrl_v != Ctrl_V && cap->nchar == '\t' && (curbuf->b_p_et || p_sta)) { stuffnumReadbuff(cap->count1); stuffcharReadbuff('R'); *** ../vim61.177/src/version.c Sat Sep 14 17:05:26 2002 --- src/version.c Sat Sep 14 17:07:22 2002 *************** *** 608,609 **** --- 608,611 ---- { /* Add new patch number below this line */ + /**/ + 178, /**/ -- ARTHUR: I've said I'm sorry about the old woman, but from the behind you looked ... DENNIS: What I object to is that you automatically treat me like an inferior... ARTHUR: Well ... I AM king. "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD /// Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net \\\ /// Creator of Vim - Vi IMproved -- http://www.vim.org \\\ \\\ Project leader for A-A-P -- http://www.a-a-p.org /// \\\ Lord Of The Rings helps Uganda - http://iccf-holland.org/lotr.html ///