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.22 < prev    next >
Encoding:
Internet Message Format  |  1999-08-10  |  3.2 KB

  1. To: raf <raf@comdyn.com.au>
  2. Cc: vim-dev@vim.org
  3. Subject: patch 5.4.22 (was: 5.4.20 bug?)
  4. In-Reply-To: <19990811185723.A17669@comdyn.com.au>
  5. Fcc: outbox
  6. From: Bram Moolenaar <Bram@moolenaar.net>
  7. ------------
  8.  
  9. raf wrote:
  10.  
  11. > solaris 2.6 + motif + gvim-5.4.20 + -u NONE -U NONE
  12. > i've just noticed a wierdness.
  13. > while in insert mode, i type the first few letters of a word
  14. > that appears later in the line, type <C-n> to complete the word,
  15. > type <C-Left> to return the beginning of the completed word,
  16. > type <Down> expecting to move to the nexdt line at the same column.
  17. > but instead, the cursor moves to the next line at the column where
  18. > the completed word ended (not where it began).
  19. > if i type <Left> or <Right> between the <C-Left> and the <Down>,
  20. > then it remembers the correct column position.
  21.  
  22. In fact, every time you use <C-Left> in insert mode, the column to use for
  23. <Down> and <Up> isn't updated.  Same for <S-Left>, <C-Right> and <S-Right>.
  24.  
  25. Patch 5.4.22
  26. Problem:    In Insert mode, <C-Left>, <S-Left>, <C-Right> and <S-Right> didn't
  27.             update the column used for vertical movement.
  28. Solution:   Set curwin->w_set_curswant for those commands.
  29. Files:      src/edit.c
  30.  
  31.  
  32. *** ../vim-5.4.21/src/edit.c    Tue Aug 10 16:10:18 1999
  33. --- src/edit.c    Wed Aug 11 22:26:20 1999
  34. ***************
  35. *** 5175,5180 ****
  36. --- 5175,5181 ----
  37.       {
  38.       start_arrow(&curwin->w_cursor);
  39.       (void)bck_word(1L, 0, FALSE);
  40. +     curwin->w_set_curswant = TRUE;
  41.       }
  42.       else
  43.       vim_beep();
  44. ***************
  45. *** 5227,5232 ****
  46. --- 5228,5234 ----
  47.       {
  48.       start_arrow(&curwin->w_cursor);
  49.       (void)fwd_word(1L, 0, 0);
  50. +     curwin->w_set_curswant = TRUE;
  51.       }
  52.       else
  53.       vim_beep();
  54. *** ../vim-5.4.21/src/version.h    Tue Aug 10 16:16:34 1999
  55. --- src/version.h    Wed Aug 11 22:29:49 1999
  56. ***************
  57. *** 19,26 ****
  58.   #define VIM_VERSION_MINOR_STR        "4"
  59.   #define VIM_VERSION_BUILD         57
  60.   #define VIM_VERSION_BUILD_STR        "57"
  61. ! #define VIM_VERSION_PATCHLEVEL         21
  62. ! #define VIM_VERSION_PATCHLEVEL_STR    "21"
  63.   
  64.   /*
  65.    * VIM_VERSION_NODOT is used for the runtime directory name.
  66. --- 19,26 ----
  67.   #define VIM_VERSION_MINOR_STR        "4"
  68.   #define VIM_VERSION_BUILD         57
  69.   #define VIM_VERSION_BUILD_STR        "57"
  70. ! #define VIM_VERSION_PATCHLEVEL         22
  71. ! #define VIM_VERSION_PATCHLEVEL_STR    "22"
  72.   
  73.   /*
  74.    * VIM_VERSION_NODOT is used for the runtime directory name.
  75. ***************
  76. *** 30,35 ****
  77.    */
  78.   #define VIM_VERSION_NODOT    "vim54"
  79.   #define VIM_VERSION_SHORT    "5.4"
  80. ! #define VIM_VERSION_MEDIUM    "5.4.21"
  81. ! #define VIM_VERSION_LONG    "VIM - Vi IMproved 5.4.21 (1999 Aug 10)"
  82. ! #define VIM_VERSION_LONG_DATE    "VIM - Vi IMproved 5.4.21 (1999 Aug 10, compiled "
  83. --- 30,35 ----
  84.    */
  85.   #define VIM_VERSION_NODOT    "vim54"
  86.   #define VIM_VERSION_SHORT    "5.4"
  87. ! #define VIM_VERSION_MEDIUM    "5.4.22"
  88. ! #define VIM_VERSION_LONG    "VIM - Vi IMproved 5.4.22 (1999 Aug 11)"
  89. ! #define VIM_VERSION_LONG_DATE    "VIM - Vi IMproved 5.4.22 (1999 Aug 11, compiled "
  90.  
  91. --
  92. hundred-and-one symptoms of being an internet addict:
  93. 40. You tell the cab driver you live at
  94.     http://123.elm.street/house/bluetrim.html
  95. 41. You actually try that 123.elm.street address.
  96.  
  97. --/-/---- Bram Moolenaar ---- Bram@moolenaar.net ---- Bram@vim.org ---\-\--
  98.   \ \    www.vim.org/iccf      www.moolenaar.net       www.vim.org    / /
  99.