diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-02-08 17:40:36 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-02-08 17:40:36 +0000 |
commit | 73a16c22a4703cb9a7becdf459ce62bd894980d7 (patch) | |
tree | 4b5f54f6818c002c14bfbf3ce7f4cd1744e2b071 /src/ex_getln.c | |
parent | e3537aec2f8d6470010547af28dcbd83d41461b8 (diff) |
patch 8.2.4328: command line complete matches cleard when typing characterv8.2.4328
Problem: Command line complete matches cleard when typing character.
(Dominique Pellé)
Solution: Only remove a popup menu if there is one.
Diffstat (limited to 'src/ex_getln.c')
-rw-r--r-- | src/ex_getln.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c index 5def8a6a24..63f1c5dcbf 100644 --- a/src/ex_getln.c +++ b/src/ex_getln.c @@ -1883,7 +1883,8 @@ getcmdline_int( && c != Ctrl_L) { #ifdef FEAT_WILDMENU - cmdline_pum_remove(); + if (cmdline_pum_active()) + cmdline_pum_remove(); #endif (void)ExpandOne(&xpc, NULL, NULL, 0, WILD_FREE); did_wild_list = FALSE; |