1
0
forked from aniani/vim

patch 8.1.0271: 'incsearch' doesn't work for :s, :g or :v

Problem:    'incsearch' doesn't work for :s, :g or :v.
Solution:   Also use 'incsearch' for other commands that use a pattern.
This commit is contained in:
Bram Moolenaar
2018-08-11 16:40:43 +02:00
parent b31a3acce1
commit b0acacd767
5 changed files with 180 additions and 20 deletions

View File

@@ -7892,6 +7892,13 @@ next_search_hl(
long nmatched;
int save_called_emsg = called_emsg;
// for :{range}s/pat only highlight inside the range
if (lnum < search_first_line || lnum > search_last_line)
{
shl->lnum = 0;
return;
}
if (shl->lnum != 0)
{
/* Check for three situations: