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:
@@ -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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user