forked from aniani/vim
patch 9.1.1200: cmdline pum not cleared for input() completion
Problem: Cmdline pum not cleared for input() completion. Solution: Temporary reset RedrawingDisabled in cmdline_pum_cleanup(), like what is done in wildmenu_cleanup() (zeertzjq). fixes: #16874 closes: #16876 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
0adbe639a5
commit
1830e787f6
@@ -1930,7 +1930,7 @@ getcmdline_int(
|
||||
if (end_wildmenu)
|
||||
{
|
||||
if (cmdline_pum_active())
|
||||
cmdline_pum_remove();
|
||||
cmdline_pum_remove(&ccline);
|
||||
if (xpc.xp_numfiles != -1)
|
||||
(void)ExpandOne(&xpc, NULL, NULL, 0, WILD_FREE);
|
||||
did_wild_list = FALSE;
|
||||
@@ -2556,7 +2556,7 @@ returncmd:
|
||||
// if certain special keys like <Esc> or <C-\> were used as wildchar. Make
|
||||
// sure to still clean up to avoid memory corruption.
|
||||
if (cmdline_pum_active())
|
||||
cmdline_pum_remove();
|
||||
cmdline_pum_remove(&ccline);
|
||||
wildmenu_cleanup(&ccline);
|
||||
did_wild_list = FALSE;
|
||||
wim_index = 0;
|
||||
|
Reference in New Issue
Block a user