scroll: use win->w_viewport_invalid

This commit is contained in:
Rom Grk
2020-10-24 20:16:58 -04:00
parent bcf79c62bc
commit a1596f0b0b
3 changed files with 2 additions and 16 deletions

View File

@@ -1483,13 +1483,8 @@ static void ins_redraw(
}
if (ready && has_event(EVENT_SCROLL)
&& (curwin->w_last_topline != curwin->w_topline ||
curwin->w_last_leftcol != curwin->w_leftcol)) {
&& curwin->w_viewport_invalid) {
apply_autocmds(EVENT_SCROLL, NULL, NULL, false, curbuf);
curwin->w_last_topline = curwin->w_topline;
curwin->w_last_leftcol = curwin->w_leftcol;
}
if (curwin->w_p_cole > 0 && conceal_cursor_line(curwin)