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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user