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.0.171 < prev    next >
Encoding:
Internet Message Format  |  2002-02-03  |  2.2 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.0.171
  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.0.171
  11. Problem:    With 'keymodel' including "startsel", in Insert mode after the end
  12.         of a line, shift-Left does not move the cursor. (Steve Hall)
  13. Solution:   CTRL-O doesn't move the cursor left, need to do that explicitly.
  14. Files:        src/edit.c
  15.  
  16.  
  17. *** ../vim60.170/src/edit.c    Tue Jan 15 19:48:49 2002
  18. --- src/edit.c    Mon Feb  4 10:17:59 2002
  19. ***************
  20. *** 5763,5786 ****
  21.            * CTRL-O when beyond the end of the line. */
  22.           start_selection();
  23.   
  24. !         /* Execute the key in (insert) Select mode, unless it's
  25. !          * shift-left and beyond the end of the line (the CTRL-O
  26. !          * will move the cursor left already). */
  27.           stuffcharReadbuff(Ctrl_O);
  28. !         if (c != K_S_LEFT || gchar_cursor() != NUL)
  29.           {
  30. !             if (mod_mask)
  31. !             {
  32. !             char_u        buf[4];
  33.   
  34. !             buf[0] = K_SPECIAL;
  35. !             buf[1] = KS_MODIFIER;
  36. !             buf[2] = mod_mask;
  37. !             buf[3] = NUL;
  38. !             stuffReadbuff(buf);
  39. !             }
  40. !             stuffcharReadbuff(c);
  41.           }
  42.           return TRUE;
  43.       }
  44.       return FALSE;
  45. --- 5766,5784 ----
  46.            * CTRL-O when beyond the end of the line. */
  47.           start_selection();
  48.   
  49. !         /* Execute the key in (insert) Select mode. */
  50.           stuffcharReadbuff(Ctrl_O);
  51. !         if (mod_mask)
  52.           {
  53. !             char_u        buf[4];
  54.   
  55. !             buf[0] = K_SPECIAL;
  56. !             buf[1] = KS_MODIFIER;
  57. !             buf[2] = mod_mask;
  58. !             buf[3] = NUL;
  59. !             stuffReadbuff(buf);
  60.           }
  61. +         stuffcharReadbuff(c);
  62.           return TRUE;
  63.       }
  64.       return FALSE;
  65. *** ../vim60.170/src/version.c    Mon Feb  4 09:55:08 2002
  66. --- src/version.c    Mon Feb  4 10:23:25 2002
  67. ***************
  68. *** 608,609 ****
  69. --- 608,611 ----
  70.   {   /* Add new patch number below this line */
  71. + /**/
  72. +     171,
  73.   /**/
  74.  
  75. -- 
  76. If Microsoft would build a car...
  77. ... the oil, water temperature, and alternator warning lights would
  78. all be replaced by a single "General Protection Fault" warning light.
  79.  
  80.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  81. (((   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   )))
  82.  \\\  Help me helping AIDS orphans in Uganda - http://iccf-holland.org  ///
  83.