patch 8.2.4481: cmdline popup menu not removed when 'lazyredraw' is set
Problem: Cmdline popup menu not removed when 'lazyredraw' is set.
Solution: Temporarily reset 'lazyredraw' when removing the popup menu.
(closes #9857)
diff --git a/src/cmdexpand.c b/src/cmdexpand.c
index 84dc643..e9db8cf 100644
--- a/src/cmdexpand.c
+++ b/src/cmdexpand.c
@@ -377,9 +377,13 @@
*/
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();
}