]> granicus.if.org Git - vim/commitdiff
patch 8.2.4641: may mark the wrong window for redrawing v8.2.4641
authorBram Moolenaar <Bram@vim.org>
Mon, 28 Mar 2022 11:41:19 +0000 (12:41 +0100)
committerBram Moolenaar <Bram@vim.org>
Mon, 28 Mar 2022 11:41:19 +0000 (12:41 +0100)
Problem:    May mark the wrong window for redrawing.
Solution:   Use redraw_win_later(). (closes #10032)

src/move.c
src/version.c

index 3d8356fe95863cef8aaa97decf1826dc78943f1d..a6d2fde74fd5d9e6e509048ce53dc0ad0786c320 100644 (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
index 921e701698513af15ed59964487e845d89ed554f..0c1a16670a9a3d05fbe57604201d947b35c4d139 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    4641,
 /**/
     4640,
 /**/