diff src/move.c @ 28229:d83d9eaccdde v8.2.4641

patch 8.2.4641: may mark the wrong window for redrawing Commit: https://github.com/vim/vim/commit/471b3aed3e9c43d4dd53444ceb74f9a4f8a3874a Author: Bram Moolenaar <Bram@vim.org> 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)
author Bram Moolenaar <Bram@vim.org>
date Mon, 28 Mar 2022 13:45:03 +0200
parents c99005ffa8c3
children 51b5cab35afa
line wrap: on
line diff
--- 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