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 / 7.3 / 7.3.606 < prev    next >
Encoding:
Internet Message Format  |  2012-11-20  |  2.5 KB

  1. To: vim_dev@googlegroups.com
  2. Subject: Patch 7.3.606
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 7.3.606
  11. Problem:    CTRL-P completion has a problem with multi-byte characters.
  12. Solution:   Check for next character being NUL properly.  (Yasuhiro Matsumoto)
  13. Files:        src/search.c, src/macros.h
  14.  
  15.  
  16. *** ../vim-7.3.605/src/search.c    2012-06-06 16:12:54.000000000 +0200
  17. --- src/search.c    2012-07-19 17:09:20.000000000 +0200
  18. ***************
  19. *** 5141,5147 ****
  20.               && !(compl_cont_status & CONT_SOL)
  21.   #endif
  22.               && *startp != NUL
  23. !             && *(p = startp + 1) != NUL)
  24.           goto search_line;
  25.       }
  26.       line_breakcheck();
  27. --- 5141,5147 ----
  28.               && !(compl_cont_status & CONT_SOL)
  29.   #endif
  30.               && *startp != NUL
  31. !             && *(p = startp + MB_PTR2LEN(startp)) != NUL)
  32.           goto search_line;
  33.       }
  34.       line_breakcheck();
  35. *** ../vim-7.3.605/src/macros.h    2010-09-21 16:56:29.000000000 +0200
  36. --- src/macros.h    2012-07-19 17:08:38.000000000 +0200
  37. ***************
  38. *** 259,264 ****
  39. --- 259,266 ----
  40.    * PTR2CHAR(): get character from pointer.
  41.    */
  42.   #ifdef FEAT_MBYTE
  43. + /* Get the length of the character p points to */
  44. + # define MB_PTR2LEN(p)        (has_mbyte ? (*mb_ptr2len)(p) : 1)
  45.   /* Advance multi-byte pointer, skip over composing chars. */
  46.   # define mb_ptr_adv(p)        p += has_mbyte ? (*mb_ptr2len)(p) : 1
  47.   /* Advance multi-byte pointer, do not skip over composing chars. */
  48. ***************
  49. *** 272,277 ****
  50. --- 274,280 ----
  51.   # define MB_CHARLEN(p)        (has_mbyte ? mb_charlen(p) : (int)STRLEN(p))
  52.   # define PTR2CHAR(p)        (has_mbyte ? mb_ptr2char(p) : (int)*(p))
  53.   #else
  54. + # define MB_PTR2LEN(p)        1
  55.   # define mb_ptr_adv(p)        ++p
  56.   # define mb_cptr_adv(p)        ++p
  57.   # define mb_ptr_back(s, p)    --p
  58. *** ../vim-7.3.605/src/version.c    2012-07-19 11:37:22.000000000 +0200
  59. --- src/version.c    2012-07-19 17:13:53.000000000 +0200
  60. ***************
  61. *** 716,717 ****
  62. --- 716,719 ----
  63.   {   /* Add new patch number below this line */
  64. + /**/
  65. +     606,
  66.   /**/
  67.  
  68. -- 
  69. hundred-and-one symptoms of being an internet addict:
  70. 151. You find yourself engaged to someone you've never actually met,
  71.      except through e-mail.
  72.  
  73.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  74. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  75. \\\  an exciting new programming language -- http://www.Zimbu.org        ///
  76.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  77.