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:
@ -2390,7 +2390,7 @@ cmdline_changed:
|
|||||||
trigger_cmd_autocmd(cmdline_type, EVENT_CMDLINECHANGED);
|
trigger_cmd_autocmd(cmdline_type, EVENT_CMDLINECHANGED);
|
||||||
|
|
||||||
#ifdef FEAT_SEARCH_EXTRA
|
#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);
|
may_do_incsearch_highlighting(firstc, count, &is_state);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@ -755,6 +755,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
3225,
|
||||||
/**/
|
/**/
|
||||||
3224,
|
3224,
|
||||||
/**/
|
/**/
|
||||||
|
|||||||
Reference in New Issue
Block a user