From: Bram Moolenaar Date: Mon, 28 Mar 2022 11:41:19 +0000 (+0100) Subject: patch 8.2.4641: may mark the wrong window for redrawing X-Git-Tag: v8.2.4641 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=471b3aed3e9c43d4dd53444ceb74f9a4f8a3874a;p=vim 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) --- diff --git a/src/move.c b/src/move.c index 3d8356fe9..a6d2fde74 100644 --- a/src/move.c +++ b/src/move.c @@ -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 diff --git a/src/version.c b/src/version.c index 921e70169..0c1a16670 100644 --- a/src/version.c +++ b/src/version.c @@ -750,6 +750,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 4641, /**/ 4640, /**/