1
0
forked from aniani/vim

patch 8.2.3940: match highlight disappears when doing incsearch for ":s/pat"

Problem:    Match highlight disappears when doing incsearch for ":s/pat".
Solution:   Only use line limit for incsearch highlighting. (closes #9425)
This commit is contained in:
Bram Moolenaar
2021-12-29 19:22:44 +00:00
parent 5a664fe57f
commit 94fb8274ca
5 changed files with 36 additions and 1 deletions

View File

@@ -427,7 +427,7 @@ next_search_hl(
int called_emsg_before = called_emsg;
// for :{range}s/pat only highlight inside the range
if (lnum < search_first_line || lnum > search_last_line)
if ((lnum < search_first_line || lnum > search_last_line) && cur == NULL)
{
shl->lnum = 0;
return;