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.2.390 < prev    next >
Encoding:
Internet Message Format  |  2004-03-21  |  1.7 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.2.390
  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.2.390
  11. Problem:    Using "r*" in Visual mode on multi-byte characters only replaces
  12.         every other character. (Tyson Roberts)
  13. Solution:   Correct the cursor position after replacing each character.
  14. Files:        src/ops.c
  15.  
  16.  
  17. *** ../vim-6.2.389/src/ops.c    Thu Mar 11 17:48:22 2004
  18. --- src/ops.c    Thu Mar 18 11:09:59 2004
  19. ***************
  20. *** 2013,2018 ****
  21. --- 2013,2020 ----
  22.               State = REPLACE;
  23.               ins_char(c);
  24.               State = n;
  25. +             /* Backup to the replaced character. */
  26. +             dec_cursor();
  27.           }
  28.           else
  29.   #endif
  30. ***************
  31. *** 2061,2067 ****
  32.   #endif
  33.   
  34.           /* Advance to next character, stop at the end of the file. */
  35. !         if (inc(&curwin->w_cursor) == -1)
  36.           break;
  37.       }
  38.       }
  39. --- 2063,2069 ----
  40.   #endif
  41.   
  42.           /* Advance to next character, stop at the end of the file. */
  43. !         if (inc_cursor() == -1)
  44.           break;
  45.       }
  46.       }
  47. *** ../vim-6.2.389/src/version.c    Mon Mar 22 14:44:17 2004
  48. --- src/version.c    Mon Mar 22 14:46:25 2004
  49. ***************
  50. *** 639,640 ****
  51. --- 639,642 ----
  52.   {   /* Add new patch number below this line */
  53. + /**/
  54. +     390,
  55.   /**/
  56.  
  57. -- 
  58. hundred-and-one symptoms of being an internet addict:
  59. 94. Now admit it... How many of you have made "modem noises" into
  60.     the phone just to see if it was possible? :-)
  61.  
  62.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  63. ///        Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  64. \\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
  65.  \\\  Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html ///
  66.