aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_getln.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/ex_getln.c')
-rw-r--r--src/nvim/ex_getln.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c
index 5a5491c79e..a0bcccb5be 100644
--- a/src/nvim/ex_getln.c
+++ b/src/nvim/ex_getln.c
@@ -1801,6 +1801,10 @@ static int command_line_handle_key(CommandLineState *s)
if (nextwild(&s->xpc, WILD_ALL, 0, s->firstc != '@') == FAIL) {
break;
}
+ if (cmdline_pum_active()) {
+ cmdline_pum_cleanup(&ccline);
+ s->xpc.xp_context = EXPAND_NOTHING;
+ }
return command_line_changed(s);
case Ctrl_L: