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.
This commit is contained in:
Bram Moolenaar
2021-07-26 21:11:32 +02:00
parent 678b207fb1
commit ccb148ac63
2 changed files with 3 additions and 1 deletions

View File

@ -2390,7 +2390,7 @@ cmdline_changed:
trigger_cmd_autocmd(cmdline_type, EVENT_CMDLINECHANGED);
#ifdef FEAT_SEARCH_EXTRA
if (xpc.xp_context == EXPAND_NOTHING)
if (xpc.xp_context == EXPAND_NOTHING && (KeyTyped || vpeekc() == NUL))
may_do_incsearch_highlighting(firstc, count, &is_state);
#endif

View File

@ -755,6 +755,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
3225,
/**/
3224,
/**/