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.055 < prev    next >
Encoding:
Internet Message Format  |  2003-07-26  |  1.5 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.2.055
  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.055
  11. Problem:    Using col('.') from CTRL-O in Insert mode does not return the
  12.         correct value for multi-byte characters.
  13. Solution:   Correct the cursor position when it is necessary, move to the
  14.         first byte of a multi-byte character. (Yasuhiro Matsumoto)
  15. Files:        src/edit.c
  16.  
  17.  
  18. *** ../vim-6.2.054/src/edit.c    Thu May 29 20:35:21 2003
  19. --- src/edit.c    Thu Jul 10 00:58:03 2003
  20. ***************
  21. *** 6007,6013 ****
  22. --- 6007,6020 ----
  23.       }
  24.       else
  25.   #endif
  26. +     {
  27.           --curwin->w_cursor.col;
  28. + #ifdef FEAT_MBYTE
  29. +         /* Correct cursor for multi-byte character. */
  30. +         if (has_mbyte)
  31. +         mb_adjust_cursor();
  32. + #endif
  33. +     }
  34.       }
  35.   
  36.   #ifdef USE_IM_CONTROL
  37. *** ../vim-6.2.054/src/version.c    Sun Jul 27 15:01:56 2003
  38. --- src/version.c    Sun Jul 27 15:04:46 2003
  39. ***************
  40. *** 632,633 ****
  41. --- 632,635 ----
  42.   {   /* Add new patch number below this line */
  43. + /**/
  44. +     55,
  45.   /**/
  46.  
  47. -- 
  48. Never under any circumstances take a sleeping pill
  49. and a laxative on the same night.
  50.  
  51.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  52. ///          Creator of Vim - Vi IMproved -- http://www.Vim.org          \\\
  53. \\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
  54.  \\\  Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html  ///
  55.