diff options
Diffstat (limited to 'src/nvim/edit.c')
-rw-r--r-- | src/nvim/edit.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c index 949f5d5a62..56202177c0 100644 --- a/src/nvim/edit.c +++ b/src/nvim/edit.c @@ -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) |