From: Bram Moolenaar Date: Thu, 7 Apr 2022 17:06:08 +0000 (+0100) Subject: patch 8.2.4709: after :redraw the statusline highlight might be used X-Git-Tag: v8.2.4709 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5017c66bd461eab46094e076ad1aa818e246ce9d;p=vim patch 8.2.4709: after :redraw the statusline highlight might be used Problem: After :redraw the statusline highlight might be used. Solution: Clear the screen attribute after redrawing the screen. (closes #10108) --- diff --git a/src/ex_docmd.c b/src/ex_docmd.c index 90ca7ade2..0b8825959 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -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; diff --git a/src/version.c b/src/version.c index a7bfeceac..7eec582d9 100644 --- a/src/version.c +++ b/src/version.c @@ -746,6 +746,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 4709, /**/ 4708, /**/