my fight with the linter

This commit is contained in:
Rom Grk
2020-11-06 20:06:40 -05:00
parent 13e0ca3e19
commit 4ed6f69497
4 changed files with 24 additions and 36 deletions

View File

@@ -4158,10 +4158,12 @@ void scroll_redraw(int up, long count)
curwin->w_valid |= VALID_TOPLINE;
}
}
if (curwin->w_cursor.lnum != prev_lnum)
if (curwin->w_cursor.lnum != prev_lnum) {
coladvance(curwin->w_curswant);
if (moved)
}
if (moved) {
curwin->w_viewport_invalid = true;
}
redraw_later(curwin, VALID);
}