|
Karsten Hopp |
97dc5a |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
97dc5a |
Subject: Patch 7.3.606
|
|
Karsten Hopp |
97dc5a |
Fcc: outbox
|
|
Karsten Hopp |
97dc5a |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
97dc5a |
Mime-Version: 1.0
|
|
Karsten Hopp |
97dc5a |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
97dc5a |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
97dc5a |
------------
|
|
Karsten Hopp |
97dc5a |
|
|
Karsten Hopp |
97dc5a |
Patch 7.3.606
|
|
Karsten Hopp |
97dc5a |
Problem: CTRL-P completion has a problem with multi-byte characters.
|
|
Karsten Hopp |
97dc5a |
Solution: Check for next character being NUL properly. (Yasuhiro Matsumoto)
|
|
Karsten Hopp |
97dc5a |
Files: src/search.c, src/macros.h
|
|
Karsten Hopp |
97dc5a |
|
|
Karsten Hopp |
97dc5a |
|
|
Karsten Hopp |
97dc5a |
*** ../vim-7.3.605/src/search.c 2012-06-06 16:12:54.000000000 +0200
|
|
Karsten Hopp |
97dc5a |
--- src/search.c 2012-07-19 17:09:20.000000000 +0200
|
|
Karsten Hopp |
97dc5a |
***************
|
|
Karsten Hopp |
97dc5a |
*** 5141,5147 ****
|
|
Karsten Hopp |
97dc5a |
&& !(compl_cont_status & CONT_SOL)
|
|
Karsten Hopp |
97dc5a |
#endif
|
|
Karsten Hopp |
97dc5a |
&& *startp != NUL
|
|
Karsten Hopp |
97dc5a |
! && *(p = startp + 1) != NUL)
|
|
Karsten Hopp |
97dc5a |
goto search_line;
|
|
Karsten Hopp |
97dc5a |
}
|
|
Karsten Hopp |
97dc5a |
line_breakcheck();
|
|
Karsten Hopp |
97dc5a |
--- 5141,5147 ----
|
|
Karsten Hopp |
97dc5a |
&& !(compl_cont_status & CONT_SOL)
|
|
Karsten Hopp |
97dc5a |
#endif
|
|
Karsten Hopp |
97dc5a |
&& *startp != NUL
|
|
Karsten Hopp |
97dc5a |
! && *(p = startp + MB_PTR2LEN(startp)) != NUL)
|
|
Karsten Hopp |
97dc5a |
goto search_line;
|
|
Karsten Hopp |
97dc5a |
}
|
|
Karsten Hopp |
97dc5a |
line_breakcheck();
|
|
Karsten Hopp |
97dc5a |
*** ../vim-7.3.605/src/macros.h 2010-09-21 16:56:29.000000000 +0200
|
|
Karsten Hopp |
97dc5a |
--- src/macros.h 2012-07-19 17:08:38.000000000 +0200
|
|
Karsten Hopp |
97dc5a |
***************
|
|
Karsten Hopp |
97dc5a |
*** 259,264 ****
|
|
Karsten Hopp |
97dc5a |
--- 259,266 ----
|
|
Karsten Hopp |
97dc5a |
* PTR2CHAR(): get character from pointer.
|
|
Karsten Hopp |
97dc5a |
*/
|
|
Karsten Hopp |
97dc5a |
#ifdef FEAT_MBYTE
|
|
Karsten Hopp |
97dc5a |
+ /* Get the length of the character p points to */
|
|
Karsten Hopp |
97dc5a |
+ # define MB_PTR2LEN(p) (has_mbyte ? (*mb_ptr2len)(p) : 1)
|
|
Karsten Hopp |
97dc5a |
/* Advance multi-byte pointer, skip over composing chars. */
|
|
Karsten Hopp |
97dc5a |
# define mb_ptr_adv(p) p += has_mbyte ? (*mb_ptr2len)(p) : 1
|
|
Karsten Hopp |
97dc5a |
/* Advance multi-byte pointer, do not skip over composing chars. */
|
|
Karsten Hopp |
97dc5a |
***************
|
|
Karsten Hopp |
97dc5a |
*** 272,277 ****
|
|
Karsten Hopp |
97dc5a |
--- 274,280 ----
|
|
Karsten Hopp |
97dc5a |
# define MB_CHARLEN(p) (has_mbyte ? mb_charlen(p) : (int)STRLEN(p))
|
|
Karsten Hopp |
97dc5a |
# define PTR2CHAR(p) (has_mbyte ? mb_ptr2char(p) : (int)*(p))
|
|
Karsten Hopp |
97dc5a |
#else
|
|
Karsten Hopp |
97dc5a |
+ # define MB_PTR2LEN(p) 1
|
|
Karsten Hopp |
97dc5a |
# define mb_ptr_adv(p) ++p
|
|
Karsten Hopp |
97dc5a |
# define mb_cptr_adv(p) ++p
|
|
Karsten Hopp |
97dc5a |
# define mb_ptr_back(s, p) --p
|
|
Karsten Hopp |
97dc5a |
*** ../vim-7.3.605/src/version.c 2012-07-19 11:37:22.000000000 +0200
|
|
Karsten Hopp |
97dc5a |
--- src/version.c 2012-07-19 17:13:53.000000000 +0200
|
|
Karsten Hopp |
97dc5a |
***************
|
|
Karsten Hopp |
97dc5a |
*** 716,717 ****
|
|
Karsten Hopp |
97dc5a |
--- 716,719 ----
|
|
Karsten Hopp |
97dc5a |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
97dc5a |
+ /**/
|
|
Karsten Hopp |
97dc5a |
+ 606,
|
|
Karsten Hopp |
97dc5a |
/**/
|
|
Karsten Hopp |
97dc5a |
|
|
Karsten Hopp |
97dc5a |
--
|
|
Karsten Hopp |
97dc5a |
hundred-and-one symptoms of being an internet addict:
|
|
Karsten Hopp |
97dc5a |
151. You find yourself engaged to someone you've never actually met,
|
|
Karsten Hopp |
97dc5a |
except through e-mail.
|
|
Karsten Hopp |
97dc5a |
|
|
Karsten Hopp |
97dc5a |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
97dc5a |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
97dc5a |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
97dc5a |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|