mirror of
https://github.com/neovim/neovim.git
synced 2025-09-22 11:18:19 +00:00
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.
b0acacd767
This commit is contained in:
@@ -5918,6 +5918,12 @@ next_search_hl (
|
||||
long nmatched = 0;
|
||||
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:
|
||||
// 1. If the "lnum" is below a previous match, start a new search.
|
||||
|
Reference in New Issue
Block a user