home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 6.1.178 < prev    next >
Encoding:
Internet Message Format  |  2002-09-13  |  2.2 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.1.178
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=ISO-8859-1
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 6.1.178
  11. Problem:    When 'expandtab' is set "r<C-V><Tab>" still expands the Tab.
  12.             (Bruce deVisser)
  13. Solution:   Replace with a literal Tab.
  14. Files:        src/normal.c
  15.  
  16.  
  17. *** ../vim61.177/src/normal.c    Thu Aug 22 20:34:03 2002
  18. --- src/normal.c    Fri Sep  6 21:43:53 2002
  19. ***************
  20. *** 5880,5891 ****
  21.       }
  22.   
  23.       /*
  24. !      * Replacing with a TAB is done by edit(), because it is complicated when
  25. !      * 'expandtab', 'smarttab' or 'softtabstop' is set.
  26.        * Other characters are done below to avoid problems with things like
  27.        * CTRL-V 048 (for edit() this would be R CTRL-V 0 ESC).
  28.        */
  29. !     if (cap->nchar == '\t' && (curbuf->b_p_et || p_sta))
  30.       {
  31.       stuffnumReadbuff(cap->count1);
  32.       stuffcharReadbuff('R');
  33. --- 5887,5898 ----
  34.       }
  35.   
  36.       /*
  37. !      * Replacing with a TAB is done by edit() when it is complicated because
  38. !      * 'expandtab' or 'smarttab' is set.  CTRL-V TAB inserts a literal TAB.
  39.        * Other characters are done below to avoid problems with things like
  40.        * CTRL-V 048 (for edit() this would be R CTRL-V 0 ESC).
  41.        */
  42. !     if (had_ctrl_v != Ctrl_V && cap->nchar == '\t' && (curbuf->b_p_et || p_sta))
  43.       {
  44.       stuffnumReadbuff(cap->count1);
  45.       stuffcharReadbuff('R');
  46. *** ../vim61.177/src/version.c    Sat Sep 14 17:05:26 2002
  47. --- src/version.c    Sat Sep 14 17:07:22 2002
  48. ***************
  49. *** 608,609 ****
  50. --- 608,611 ----
  51.   {   /* Add new patch number below this line */
  52. + /**/
  53. +     178,
  54.   /**/
  55.  
  56. -- 
  57. ARTHUR: I've said I'm sorry about the old woman, but from the behind you
  58.         looked ...
  59. DENNIS: What I object to is that you automatically treat me like an inferior...
  60. ARTHUR: Well ... I AM king.
  61.                  "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
  62.  
  63.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  64. ///          Creator of Vim - Vi IMproved -- http://www.vim.org          \\\
  65. \\\           Project leader for A-A-P -- http://www.a-a-p.org           ///
  66.  \\\ Lord Of The Rings helps Uganda - http://iccf-holland.org/lotr.html ///
  67.