patch 8.1.1998: redraw even when no popup window filter was invoked

Problem:    Redraw even when no popup window filter was invoked.
Solution:   Only redraw when must_redraw was set to a larger value.
This commit is contained in:
Bram Moolenaar
2019-09-07 14:33:36 +02:00
parent bcb4c8f905
commit fbb3bc89b3
2 changed files with 4 additions and 1 deletions

View File

@ -2779,6 +2779,7 @@ popup_do_filter(int c)
win_T *wp; win_T *wp;
int save_KeyTyped = KeyTyped; int save_KeyTyped = KeyTyped;
int state; int state;
int was_must_redraw = must_redraw;
if (recursive) if (recursive)
return FALSE; return FALSE;
@ -2802,7 +2803,7 @@ popup_do_filter(int c)
&& (wp->w_filter_mode & state) != 0) && (wp->w_filter_mode & state) != 0)
res = invoke_popup_filter(wp, c); res = invoke_popup_filter(wp, c);
if (must_redraw) if (must_redraw > was_must_redraw)
redraw_after_callback(FALSE); redraw_after_callback(FALSE);
recursive = FALSE; recursive = FALSE;
KeyTyped = save_KeyTyped; KeyTyped = save_KeyTyped;

View File

@ -757,6 +757,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1998,
/**/ /**/
1997, 1997,
/**/ /**/