# HG changeset patch # User Bram Moolenaar # Date 1648467903 -7200 # Node ID d83d9eaccdde8366bb1e54e0a029768142df9dca # Parent 2868e68d1eec49118f9820899b1ee8f1d041bf02 patch 8.2.4641: may mark the wrong window for redrawing Commit: https://github.com/vim/vim/commit/471b3aed3e9c43d4dd53444ceb74f9a4f8a3874a Author: Bram Moolenaar Date: Mon Mar 28 12:41:19 2022 +0100 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 https://github.com/vim/vim/issues/10032) diff --git a/src/move.c b/src/move.c --- 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 --- a/src/version.c +++ b/src/version.c @@ -751,6 +751,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 4641, +/**/ 4640, /**/ 4639,