1
0
forked from aniani/vim

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)
This commit is contained in:
Bram Moolenaar
2022-02-27 14:28:31 +00:00
parent cbef12e60b
commit 5c52be40fb
4 changed files with 27 additions and 0 deletions

View File

@@ -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();
}