vim-patch:8.2.3225: incsearch highlighting is attempted halfway a mapping

Problem:    Incsearch highlighting is attempted halfway a mapping.
Solution:   Only do incsearch highlighting if keys were typed or there is no
            more typeahead.
ccb148ac63
This commit is contained in:
Jan Edmund Lazo 2021-08-01 10:38:51 -04:00
parent d95e28f5ce
commit 5e4fcc8b36
No known key found for this signature in database
GPG Key ID: 64915E6E9F735B15
1 changed files with 1 additions and 1 deletions

View File

@ -2267,7 +2267,7 @@ static int command_line_changed(CommandLineState *s)
close_preview_windows();
update_screen(SOME_VALID); // Clear 'inccommand' preview.
} else {
if (s->xpc.xp_context == EXPAND_NOTHING) {
if (s->xpc.xp_context == EXPAND_NOTHING && (KeyTyped || vpeekc() == NUL)) {
may_do_incsearch_highlighting(s->firstc, s->count, &s->is_state);
}
}