comparison 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
comparison
equal deleted inserted replaced
28228:2868e68d1eec 28229:d83d9eaccdde
145 { 145 {
146 if ((wp->w_valid & VALID_VIRTCOL) == 0 && !pum_visible()) 146 if ((wp->w_valid & VALID_VIRTCOL) == 0 && !pum_visible())
147 { 147 {
148 // When 'cursorcolumn' is set need to redraw with SOME_VALID. 148 // When 'cursorcolumn' is set need to redraw with SOME_VALID.
149 if (wp->w_p_cuc) 149 if (wp->w_p_cuc)
150 redraw_later(SOME_VALID); 150 redraw_win_later(wp, SOME_VALID);
151 // When 'cursorlineopt' contains "screenline" need to redraw with VALID. 151 // When 'cursorlineopt' contains "screenline" need to redraw with VALID.
152 else if (wp->w_p_cul && (wp->w_p_culopt_flags & CULOPT_SCRLINE)) 152 else if (wp->w_p_cul && (wp->w_p_culopt_flags & CULOPT_SCRLINE))
153 redraw_later(VALID); 153 redraw_win_later(wp, VALID);
154 } 154 }
155 } 155 }
156 #endif 156 #endif
157 157
158 /* 158 /*