Skip to content

Commit

Permalink
patch 8.2.4709: after :redraw the statusline highlight might be used
Browse files Browse the repository at this point in the history
Problem:    After :redraw the statusline highlight might be used.
Solution:   Clear the screen attribute after redrawing the screen.
            (closes #10108)
  • Loading branch information
brammool committed Apr 7, 2022
1 parent 177847e commit 5017c66
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ex_docmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -746,6 +746,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
4709,
/**/
4708,
/**/
Expand Down

0 comments on commit 5017c66

Please sign in to comment.