diff src/cmdexpand.c @ 27912:be9e6e0b1591 v8.2.4481

patch 8.2.4481: cmdline popup menu not removed when 'lazyredraw' is set Commit: https://github.com/vim/vim/commit/5c52be40fbab14e050d7494d85be9039f07f7f8f Author: Bram Moolenaar <Bram@vim.org> Date: Sun Feb 27 14:28:31 2022 +0000 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)
author Bram Moolenaar <Bram@vim.org>
date Sun, 27 Feb 2022 15:30:03 +0100
parents 099c2e612827
children 9a997de62da2
line wrap: on
line diff
--- 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();
 }