diff options
author | Rom Grk <romgrk.cc@gmail.com> | 2020-10-24 20:16:58 -0400 |
---|---|---|
committer | Rom Grk <romgrk.cc@gmail.com> | 2020-10-24 20:16:58 -0400 |
commit | a1596f0b0bb7e2a84e062a27fabe618d085a2947 (patch) | |
tree | 7f4b53e964c613a410e01a9b71396334ccde3b79 /src/nvim/edit.c | |
parent | bcf79c62bca76b8b2fb5f51e3f83d4c645d91684 (diff) | |
download | rneovim-a1596f0b0bb7e2a84e062a27fabe618d085a2947.tar.gz rneovim-a1596f0b0bb7e2a84e062a27fabe618d085a2947.tar.bz2 rneovim-a1596f0b0bb7e2a84e062a27fabe618d085a2947.zip |
scroll: use win->w_viewport_invalid
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) |