changeset 28367:0902a477cd03 v8.2.4709

patch 8.2.4709: after :redraw the statusline highlight might be used Commit: https://github.com/vim/vim/commit/5017c66bd461eab46094e076ad1aa818e246ce9d Author: Bram Moolenaar <Bram@vim.org> Date: Thu Apr 7 18:06:08 2022 +0100 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)
author Bram Moolenaar <Bram@vim.org>
date Thu, 07 Apr 2022 19:15:03 +0200
parents 832a949ab26d
children 04fcfcacf321
files src/ex_docmd.c src/version.c
diffstat 2 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;
--- a/src/version.c
+++ b/src/version.c
@@ -747,6 +747,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    4709,
+/**/
     4708,
 /**/
     4707,