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.150 < prev    next >
Encoding:
Internet Message Format  |  2002-01-23  |  2.0 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.0.150
  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.150
  11. Problem:    When using a multi-byte encoding, patch 6.0.148 causes "p" to work
  12.         like "P". (Sung-Hyun Nam)
  13. Solution:   Compute the byte length of a multi-byte character.
  14. Files:        src/ops.c
  15.  
  16.  
  17. *** ../vim60.149/src/ops.c    Tue Jan 22 16:51:24 2002
  18. --- src/ops.c    Thu Jan 24 11:23:26 2002
  19. ***************
  20. *** 2780,2788 ****
  21.       struct block_def bd;
  22.       char_u    *insert_string = NULL;
  23.       int        allocated = FALSE;
  24. - #ifdef FEAT_MBYTE
  25. -     int        bytelen = 0;
  26. - #endif
  27.       long    cnt;
  28.   
  29.   #ifdef FEAT_CLIPBOARD
  30. --- 2780,2785 ----
  31. ***************
  32. *** 2983,2989 ****
  33.   #ifdef FEAT_MBYTE
  34.           if (has_mbyte)
  35.           /* move to start of next multi-byte character */
  36. !         curwin->w_cursor.col += bytelen;
  37.           else
  38.   #endif
  39.   #ifdef FEAT_VIRTUALEDIT
  40. --- 2980,2986 ----
  41.   #ifdef FEAT_MBYTE
  42.           if (has_mbyte)
  43.           /* move to start of next multi-byte character */
  44. !         curwin->w_cursor.col += (*mb_ptr2len_check)(ml_get_cursor());
  45.           else
  46.   #endif
  47.   #ifdef FEAT_VIRTUALEDIT
  48. ***************
  49. *** 3148,3153 ****
  50. --- 3145,3152 ----
  51.   #ifdef FEAT_MBYTE
  52.           if (has_mbyte)
  53.           {
  54. +             int bytelen = (*mb_ptr2len_check)(ml_get_cursor());
  55.               /* put it on the next of the multi-byte character. */
  56.               col += bytelen;
  57.               if (yanklen)
  58. *** ../vim60.149/src/version.c    Tue Jan 22 17:42:37 2002
  59. --- src/version.c    Thu Jan 24 11:26:36 2002
  60. ***************
  61. *** 608,609 ****
  62. --- 608,611 ----
  63.   {   /* Add new patch number below this line */
  64. + /**/
  65. +     150,
  66.   /**/
  67.  
  68. -- 
  69. hundred-and-one symptoms of being an internet addict:
  70. 47. You are so familiar with the WWW that you find the search engines useless.
  71.  
  72.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  73. (((   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   )))
  74.  \\\  Help me helping AIDS orphans in Uganda - http://iccf-holland.org  ///
  75.