summaryrefslogtreecommitdiffstats
path: root/src/gui.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2007-11-06 21:27:31 +0000
committerBram Moolenaar <Bram@vim.org>2007-11-06 21:27:31 +0000
commit9b25ffbb2b2210d8a27316ba38ff100713504285 (patch)
tree225e723d085e0571d69e0fc86a87e6b005d47c2e /src/gui.c
parente74455a447758301b9209cb7113a3b727e89c38c (diff)
updated for version 7.1-149v7.1.149
Diffstat (limited to 'src/gui.c')
-rw-r--r--src/gui.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/gui.c b/src/gui.c
index b2b8e8499d..e5a0c267af 100644
--- a/src/gui.c
+++ b/src/gui.c
@@ -4214,7 +4214,19 @@ gui_do_scroll()
#endif
)
{
- redraw_win_later(wp, VALID);
+ int type = VALID;
+
+#ifdef FEAT_INS_EXPAND
+ if (pum_visible())
+ {
+ type = NOT_VALID;
+ wp->w_lines_valid = 0;
+ }
+#endif
+ /* Don't set must_redraw here, it may cause the popup menu to
+ * disappear when losing focus after a scrollbar drag. */
+ if (wp->w_redr_type < type)
+ wp->w_redr_type = type;
updateWindow(wp); /* update window, status line, and cmdline */
}