0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.4641: may mark the wrong window for redrawing

Problem:    May mark the wrong window for redrawing.
Solution:   Use redraw_win_later(). (closes #10032)
This commit is contained in:
Bram Moolenaar
2022-03-28 12:41:19 +01:00
parent 8be423b7ac
commit 471b3aed3e
2 changed files with 4 additions and 2 deletions

View File

@@ -147,10 +147,10 @@ redraw_for_cursorcolumn(win_T *wp)
{
// When 'cursorcolumn' is set need to redraw with SOME_VALID.
if (wp->w_p_cuc)
redraw_later(SOME_VALID);
redraw_win_later(wp, SOME_VALID);
// When 'cursorlineopt' contains "screenline" need to redraw with VALID.
else if (wp->w_p_cul && (wp->w_p_culopt_flags & CULOPT_SCRLINE))
redraw_later(VALID);
redraw_win_later(wp, VALID);
}
}
#endif