diff src/gui.c @ 1434:40aa7ae37901 v7.1.149

updated for version 7.1-149
author vimboss
date Tue, 06 Nov 2007 21:27:31 +0000
parents 99a9e42e5688
children ea1a2950ed16
line wrap: on
line diff
--- 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 */
     }