summaryrefslogtreecommitdiffstats
path: root/src/cmdexpand.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-02-27 14:28:31 +0000
committerBram Moolenaar <Bram@vim.org>2022-02-27 14:28:31 +0000
commit5c52be40fbab14e050d7494d85be9039f07f7f8f (patch)
treeb9213579bc23bf98a1521588960bb13f5f967fdf /src/cmdexpand.c
parentcbef12e60b2c5a4f026172ab9873deaab2e70cf2 (diff)
patch 8.2.4481: cmdline popup menu not removed when 'lazyredraw' is setv8.2.4481
Problem: Cmdline popup menu not removed when 'lazyredraw' is set. Solution: Temporarily reset 'lazyredraw' when removing the popup menu. (closes #9857)
Diffstat (limited to 'src/cmdexpand.c')
-rw-r--r--src/cmdexpand.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cmdexpand.c b/src/cmdexpand.c
index 84dc643424..e9db8cfc95 100644
--- a/src/cmdexpand.c
+++ b/src/cmdexpand.c
@@ -377,9 +377,13 @@ int cmdline_pum_active(void)
*/
void cmdline_pum_remove(void)
{
+ int save_p_lz = p_lz;
+
pum_undisplay();
VIM_CLEAR(compl_match_array);
+ p_lz = FALSE; // avoid the popup menu hanging around
update_screen(0);
+ p_lz = save_p_lz;
redrawcmd();
}