mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06: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
|
if (match
|
||||||
/* check that no composing char follows */
|
/* check that no composing char follows */
|
||||||
&& !(enc_utf8
|
&& !(enc_utf8
|
||||||
|
&& STRLEN(regline) > (size_t)(col + len2)
|
||||||
&& utf_iscomposing(PTR2CHAR(regline + col + len2)))
|
&& utf_iscomposing(PTR2CHAR(regline + col + len2)))
|
||||||
) {
|
) {
|
||||||
cleanup_subexpr();
|
cleanup_subexpr();
|
||||||
|
@ -653,7 +653,7 @@ int searchit(
|
|||||||
}
|
}
|
||||||
if (matchcol == 0 && (options & SEARCH_START))
|
if (matchcol == 0 && (options & SEARCH_START))
|
||||||
break;
|
break;
|
||||||
if (ptr[matchcol] == NUL
|
if (STRLEN(ptr) <= (size_t)matchcol || ptr[matchcol] == NUL
|
||||||
|| (nmatched = vim_regexec_multi(®match,
|
|| (nmatched = vim_regexec_multi(®match,
|
||||||
win, buf, lnum + matchpos.lnum,
|
win, buf, lnum + matchpos.lnum,
|
||||||
matchcol,
|
matchcol,
|
||||||
|
Loading…
Reference in New Issue
Block a user