0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.4328: command line complete matches cleard when typing character

Problem:    Command line complete matches cleard when typing character.
            (Dominique Pellé)
Solution:   Only remove a popup menu if there is one.
This commit is contained in:
Bram Moolenaar
2022-02-08 17:40:36 +00:00
parent e3537aec2f
commit 73a16c22a4
5 changed files with 33 additions and 1 deletions

View File

@@ -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;