]> granicus.if.org Git - vim/commitdiff
patch 8.1.1451: CTRL-L does not clear screen with a popup window v8.1.1451
authorBram Moolenaar <Bram@vim.org>
Sun, 2 Jun 2019 13:56:15 +0000 (15:56 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 2 Jun 2019 13:56:15 +0000 (15:56 +0200)
Problem:    CTRL-L does not clear screen with a popup window.
Solution:   Do not change the type to NOT_VALID.  Redraw all windows.
            (closes #4471)

src/screen.c
src/version.c

index be3bcfad5d1013610ce66b5366417478d3e3a1b6..f179618166a478b33debf839e237156abe32b68d 100644 (file)
@@ -613,7 +613,12 @@ update_screen(int type_arg)
 #ifdef FEAT_TEXT_PROP
     // TODO: avoid redrawing everything when there is a popup window.
     if (popup_any_visible())
-       type = NOT_VALID;
+    {
+       if (type < NOT_VALID)
+           type = NOT_VALID;
+       FOR_ALL_WINDOWS(wp)
+           wp->w_redr_type = NOT_VALID;
+    }
 #endif
 
     updating_screen = TRUE;
index 6417e41d36cecfc58dcd66bd0e9c289088c59061..6e04c071789ba459bf0cdf1384e4de52b6e28ea4 100644 (file)
@@ -767,6 +767,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1451,
 /**/
     1450,
 /**/