summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-09-07 14:33:36 +0200
committerBram Moolenaar <Bram@vim.org>2019-09-07 14:33:36 +0200
commitfbb3bc89b3ae29b5d42cc5951db67e2e71a22880 (patch)
tree7457b2bea69c9d9ee364be4c08072a5b60d26cec /src
parentbcb4c8f9058c17dead61a0a384cb1e09c5fc459b (diff)
downloadvim-git-fbb3bc89b3ae29b5d42cc5951db67e2e71a22880.tar.gz
patch 8.1.1998: redraw even when no popup window filter was invokedv8.1.1998
Problem: Redraw even when no popup window filter was invoked. Solution: Only redraw when must_redraw was set to a larger value.
Diffstat (limited to 'src')
-rw-r--r--src/popupwin.c3
-rw-r--r--src/version.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/src/popupwin.c b/src/popupwin.c
index 1fb72bbdb..7fb9792f5 100644
--- a/src/popupwin.c
+++ b/src/popupwin.c
@@ -2779,6 +2779,7 @@ popup_do_filter(int c)
win_T *wp;
int save_KeyTyped = KeyTyped;
int state;
+ int was_must_redraw = must_redraw;
if (recursive)
return FALSE;
@@ -2802,7 +2803,7 @@ popup_do_filter(int c)
&& (wp->w_filter_mode & state) != 0)
res = invoke_popup_filter(wp, c);
- if (must_redraw)
+ if (must_redraw > was_must_redraw)
redraw_after_callback(FALSE);
recursive = FALSE;
KeyTyped = save_KeyTyped;
diff --git a/src/version.c b/src/version.c
index d933bffa2..634efd1de 100644
--- a/src/version.c
+++ b/src/version.c
@@ -758,6 +758,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1998,
+/**/
1997,
/**/
1996,