mirror of
https://github.com/neovim/neovim.git
synced 2025-09-18 09:18:19 +00:00
refactor: de-curwin-ify update_topline/curs_columns
This commit is contained in:
@@ -8050,7 +8050,7 @@ static void ex_redraw(exarg_T *eap)
|
||||
RedrawingDisabled = 0;
|
||||
p_lz = FALSE;
|
||||
validate_cursor();
|
||||
update_topline();
|
||||
update_topline(curwin);
|
||||
if (eap->forceit) {
|
||||
redraw_all_later(NOT_VALID);
|
||||
}
|
||||
@@ -8200,7 +8200,7 @@ static void ex_mark(exarg_T *eap)
|
||||
void update_topline_cursor(void)
|
||||
{
|
||||
check_cursor(); /* put cursor on valid line */
|
||||
update_topline();
|
||||
update_topline(curwin);
|
||||
if (!curwin->w_p_wrap)
|
||||
validate_cursor();
|
||||
update_curswant();
|
||||
|
Reference in New Issue
Block a user