commit | 94c465c53d77d2c6eda829c744f27f093f0e0813 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Thu Jul 19 17:18:26 2012 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Thu Jul 19 17:18:26 2012 +0200 |
tree | c62f7ae2fd4b788e6df6378f5ad4f86bc7c98ee4 | |
parent | 1a0cee53d414517aef51e31a17a7d089f85e10b8 [diff] [blame] |
updated for version 7.3.606 Problem: CTRL-P completion has a problem with multi-byte characters. Solution: Check for next character being NUL properly. (Yasuhiro Matsumoto)
diff --git a/src/search.c b/src/search.c index 1db967d..e231a3a 100644 --- a/src/search.c +++ b/src/search.c
@@ -5141,7 +5141,7 @@ && !(compl_cont_status & CONT_SOL) #endif && *startp != NUL - && *(p = startp + 1) != NUL) + && *(p = startp + MB_PTR2LEN(startp)) != NUL) goto search_line; } line_breakcheck();