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 3d8356f..a6d2fde 100644
--- a/src/move.c
+++ b/src/move.c
@@ -147,10 +147,10 @@
{
// 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