mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 11:15:14 -07:00
parent
c708061a5a
commit
0a116c828d
@ -4781,6 +4781,7 @@ static long find_match_text(colnr_T startcol, int regstart, char_u *match_text)
|
||||
if (match
|
||||
/* check that no composing char follows */
|
||||
&& !(enc_utf8
|
||||
&& STRLEN(regline) > (size_t)(col + len2)
|
||||
&& utf_iscomposing(PTR2CHAR(regline + col + len2)))
|
||||
) {
|
||||
cleanup_subexpr();
|
||||
|
@ -653,7 +653,7 @@ int searchit(
|
||||
}
|
||||
if (matchcol == 0 && (options & SEARCH_START))
|
||||
break;
|
||||
if (ptr[matchcol] == NUL
|
||||
if (STRLEN(ptr) <= (size_t)matchcol || ptr[matchcol] == NUL
|
||||
|| (nmatched = vim_regexec_multi(®match,
|
||||
win, buf, lnum + matchpos.lnum,
|
||||
matchcol,
|
||||
|
Loading…
Reference in New Issue
Block a user