diff src/screen.c @ 17196:983950357c40 v8.1.1597

patch 8.1.1597: cannot scroll a popup window with the mouse commit https://github.com/vim/vim/commit/68acb41f990405cb5ccd33fcba71a5d499c82974 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jun 26 03:40:36 2019 +0200 patch 8.1.1597: cannot scroll a popup window with the mouse Problem: Cannot scroll a popup window with the mouse. Solution: If the popup window has a scrollbar let the mouse scroll wheel scroll the window.
author Bram Moolenaar <Bram@vim.org>
date Wed, 26 Jun 2019 03:45:04 +0200
parents f16cee6adf29
children 13d0753511fe
line wrap: on
line diff
--- a/src/screen.c
+++ b/src/screen.c
@@ -875,7 +875,7 @@ update_prepare(void)
 #endif
 #ifdef FEAT_TEXT_PROP
     // Update popup_mask if needed.
-    may_update_popup_mask(0);
+    may_update_popup_mask(must_redraw);
 #endif
 }
 
@@ -1555,7 +1555,11 @@ win_update(win_T *wp)
 	if (mid_start == 0)
 	{
 	    mid_end = wp->w_height;
-	    if (ONE_WINDOW)
+	    if (ONE_WINDOW
+#ifdef FEAT_TEXT_PROP
+		    && !bt_popup(wp->w_buffer)
+#endif
+		    )
 	    {
 		/* Clear the screen when it was not done by win_del_lines() or
 		 * win_ins_lines() above, "screen_cleared" is FALSE or MAYBE