Mercurial > vim
comparison src/search.c @ 3693:c612d154bcdd v7.3.606
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)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Thu, 19 Jul 2012 17:18:26 +0200 |
parents | 5c1aaf9b4b1b |
children | d29aa05b7e31 |
comparison
equal
deleted
inserted
replaced
3692:f2438f5f835e | 3693:c612d154bcdd |
---|---|
5139 #ifdef FEAT_INS_EXPAND | 5139 #ifdef FEAT_INS_EXPAND |
5140 && action == ACTION_EXPAND | 5140 && action == ACTION_EXPAND |
5141 && !(compl_cont_status & CONT_SOL) | 5141 && !(compl_cont_status & CONT_SOL) |
5142 #endif | 5142 #endif |
5143 && *startp != NUL | 5143 && *startp != NUL |
5144 && *(p = startp + 1) != NUL) | 5144 && *(p = startp + MB_PTR2LEN(startp)) != NUL) |
5145 goto search_line; | 5145 goto search_line; |
5146 } | 5146 } |
5147 line_breakcheck(); | 5147 line_breakcheck(); |
5148 #ifdef FEAT_INS_EXPAND | 5148 #ifdef FEAT_INS_EXPAND |
5149 if (action == ACTION_EXPAND) | 5149 if (action == ACTION_EXPAND) |