summaryrefslogtreecommitdiffstats
path: root/src/ex_getln.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-07-26 21:11:32 +0200
committerBram Moolenaar <Bram@vim.org>2021-07-26 21:11:32 +0200
commitccb148ac63941feba879ea4678aa4713d81494f2 (patch)
treec12bcb93b37011265059ad5c560707005daa45cb /src/ex_getln.c
parent678b207fb111840fec1f0dc43910613ba106b90d (diff)
patch 8.2.3225: incsearch highlighting is attempted halfway a mappingv8.2.3225
Problem: Incsearch highlighting is attempted halfway a mapping. Solution: Only do incsearch highlighting if keys were typed or there is no more typeahead.
Diffstat (limited to 'src/ex_getln.c')
-rw-r--r--src/ex_getln.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c
index 22f1cf6d2f..40b8886a04 100644
--- a/src/ex_getln.c
+++ b/src/ex_getln.c
@@ -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