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.239 < prev    next >
Encoding:
Internet Message Format  |  2002-02-19  |  2.0 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.0.239
  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.239
  11. Problem:    Using "A" to append after a Visually selected block which is after
  12.         the end of the line, spaces are inserted in the wrong line and
  13.         other unexpected effects. (Michael Naumann)
  14. Solution:   Don't advance the cursor to the next line.
  15. Files:        src/ops.c
  16.  
  17.  
  18. *** ../vim60.238/src/ops.c    Mon Feb 18 10:26:39 2002
  19. --- src/ops.c    Wed Feb 20 20:47:18 2002
  20. ***************
  21. *** 2201,2211 ****
  22.   #endif
  23.          )
  24.       {
  25. !         /* this lil bit if code adapted from nv_append() */
  26.           curwin->w_set_curswant = TRUE;
  27. !         while (inc_cursor() == 0
  28.               && (curwin->w_cursor.col < bd.textcol + bd.textlen))
  29. !         ;
  30.           if (bd.is_short && !bd.is_MAX)
  31.           {
  32.           /* First line was too short, make it longer and adjust the
  33. --- 2201,2211 ----
  34.   #endif
  35.          )
  36.       {
  37. !         /* Move the cursor to the character right of the block. */
  38.           curwin->w_set_curswant = TRUE;
  39. !         while (*ml_get_cursor() != NUL
  40.               && (curwin->w_cursor.col < bd.textcol + bd.textlen))
  41. !         ++curwin->w_cursor.col;
  42.           if (bd.is_short && !bd.is_MAX)
  43.           {
  44.           /* First line was too short, make it longer and adjust the
  45. *** ../vim60.238/src/version.c    Tue Feb 19 21:22:35 2002
  46. --- src/version.c    Wed Feb 20 20:47:29 2002
  47. ***************
  48. *** 608,609 ****
  49. --- 608,611 ----
  50.   {   /* Add new patch number below this line */
  51. + /**/
  52. +     239,
  53.   /**/
  54.  
  55. -- 
  56. FIRST VILLAGER: We have found a witch.  May we burn her?
  57.                  "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
  58.  
  59.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  60. ///   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   \\\
  61. \\\           Project leader for A-A-P -- http://www.a-a-p.org           ///
  62.  \\\  Help me helping AIDS orphans in Uganda - http://iccf-holland.org  ///
  63.