]> granicus.if.org Git - vim/commitdiff
patch 8.2.4709: after :redraw the statusline highlight might be used v8.2.4709
authorBram Moolenaar <Bram@vim.org>
Thu, 7 Apr 2022 17:06:08 +0000 (18:06 +0100)
committerBram Moolenaar <Bram@vim.org>
Thu, 7 Apr 2022 17:06:08 +0000 (18:06 +0100)
Problem:    After :redraw the statusline highlight might be used.
Solution:   Clear the screen attribute after redrawing the screen.
            (closes #10108)

src/ex_docmd.c
src/version.c

index 90ca7ade2bd99a9d2e01c43118c21d403b021c28..0b8825959e6260ac32070d46177629d83b3736fa 100644 (file)
@@ -8290,6 +8290,9 @@ ex_redraw(exarg_T *eap)
     RedrawingDisabled = r;
     p_lz = p;
 
+    // After drawing the statusline screen_attr may still be set.
+    screen_stop_highlight();
+
     // Reset msg_didout, so that a message that's there is overwritten.
     msg_didout = FALSE;
     msg_col = 0;
index a7bfeceaca222d1864af581bf73441dbe450b6be..7eec582d98ef9d10053ecbe0c5bea4f76fe8d4af 100644 (file)
@@ -746,6 +746,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    4709,
 /**/
     4708,
 /**/