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 / old / 5.4.44 < prev    next >
Encoding:
Internet Message Format  |  1999-08-20  |  2.6 KB

  1. To: Johannes Zellner <johannes@zellner.org>
  2. Cc: vim-dev <vim-dev@vim.org>
  3. Subject: patch 5.4.44 (was: whichwrap=~ & undo)
  4. In-Reply-To: <Pine.LNX.4.10.9908211831200.26571-100000@krispc6.physik.uni-karlsruhe.de>
  5. Fcc: outbox
  6. From: Bram Moolenaar <Bram@moolenaar.net>
  7. ------------
  8.  
  9. Johannes Zellner wrote:
  10.  
  11. > set whichwrap=~
  12. > place the cursor on the `b' of
  13. > bla
  14. > fred
  15. > hit 6~, and you'll get
  16. > BLA
  17. > FREd
  18. > hit u for undo and you'll get
  19. > bla
  20. > FREd
  21.  
  22. Oops!  Strange that nobody noticed this yet...  Fortunately it's easy to fix:
  23.  
  24.  
  25. Patch 5.4.44
  26. Problem:    When 'whichwrap' includes '~', a "~" command that goes on to the
  27.         next line cannot be properly undone. (Zellner)
  28. Solution:   Save each line for undo in n_swapchar().
  29. Files:        src/normal.c
  30.  
  31.  
  32. *** ../vim-5.4.43/src/normal.c    Wed Aug 11 23:19:48 1999
  33. --- src/normal.c    Sat Aug 21 22:15:37 1999
  34. ***************
  35. *** 4623,4628 ****
  36. --- 4623,4634 ----
  37.           ++curwin->w_cursor.lnum;
  38.           curwin->w_cursor.col = 0;
  39.           redraw_curbuf_later(NOT_VALID);
  40. +         if (n > 1)
  41. +         {
  42. +             if (u_savesub(curwin->w_cursor.lnum) == FAIL)
  43. +             break;
  44. +             u_clearline();
  45. +         }
  46.           }
  47.           else
  48.           break;
  49. *** ../vim-5.4.43/src/version.h    Sat Aug 21 21:51:34 1999
  50. --- src/version.h    Sat Aug 21 22:19:33 1999
  51. ***************
  52. *** 19,26 ****
  53.   #define VIM_VERSION_MINOR_STR        "4"
  54.   #define VIM_VERSION_BUILD         57
  55.   #define VIM_VERSION_BUILD_STR        "57"
  56. ! #define VIM_VERSION_PATCHLEVEL         43
  57. ! #define VIM_VERSION_PATCHLEVEL_STR    "43"
  58.   
  59.   /*
  60.    * VIM_VERSION_NODOT is used for the runtime directory name.
  61. --- 19,26 ----
  62.   #define VIM_VERSION_MINOR_STR        "4"
  63.   #define VIM_VERSION_BUILD         57
  64.   #define VIM_VERSION_BUILD_STR        "57"
  65. ! #define VIM_VERSION_PATCHLEVEL         44
  66. ! #define VIM_VERSION_PATCHLEVEL_STR    "44"
  67.   
  68.   /*
  69.    * VIM_VERSION_NODOT is used for the runtime directory name.
  70. ***************
  71. *** 30,35 ****
  72.    */
  73.   #define VIM_VERSION_NODOT    "vim54"
  74.   #define VIM_VERSION_SHORT    "5.4"
  75. ! #define VIM_VERSION_MEDIUM    "5.4.43"
  76. ! #define VIM_VERSION_LONG    "VIM - Vi IMproved 5.4.43 (1999 Aug 21)"
  77. ! #define VIM_VERSION_LONG_DATE    "VIM - Vi IMproved 5.4.43 (1999 Aug 21, compiled "
  78. --- 30,35 ----
  79.    */
  80.   #define VIM_VERSION_NODOT    "vim54"
  81.   #define VIM_VERSION_SHORT    "5.4"
  82. ! #define VIM_VERSION_MEDIUM    "5.4.44"
  83. ! #define VIM_VERSION_LONG    "VIM - Vi IMproved 5.4.44 (1999 Aug 21)"
  84. ! #define VIM_VERSION_LONG_DATE    "VIM - Vi IMproved 5.4.44 (1999 Aug 21, compiled "
  85.  
  86. --
  87. hundred-and-one symptoms of being an internet addict:
  88. 181. You make up words that go with the "happy tune" your modem makes
  89.      while dialing your ISP.
  90.  
  91. --/-/---- Bram Moolenaar ---- Bram@moolenaar.net ---- Bram@vim.org ---\-\--
  92.   \ \    www.vim.org/iccf      www.moolenaar.net       www.vim.org    / /
  93.