diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-02-27 14:28:31 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-02-27 14:28:31 +0000 |
commit | 5c52be40fbab14e050d7494d85be9039f07f7f8f (patch) | |
tree | b9213579bc23bf98a1521588960bb13f5f967fdf /src/cmdexpand.c | |
parent | cbef12e60b2c5a4f026172ab9873deaab2e70cf2 (diff) | |
download | vim-git-5c52be40fbab14e050d7494d85be9039f07f7f8f.tar.gz |
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.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cmdexpand.c b/src/cmdexpand.c index 84dc64342..e9db8cfc9 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(); } |