mirror of
https://github.com/neovim/neovim.git
synced 2025-09-23 19:48:32 +00:00
scroll: use win->w_viewport_invalid
This commit is contained in:
@@ -1197,13 +1197,8 @@ static void normal_check_window_scrolled(NormalState *s)
|
||||
{
|
||||
// Trigger Scroll if the window moved.
|
||||
if (!finish_op && 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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1293,7 +1288,6 @@ static void normal_redraw(NormalState *s)
|
||||
xfree(p);
|
||||
}
|
||||
|
||||
|
||||
// show fileinfo after redraw
|
||||
if (need_fileinfo && !shortmess(SHM_FILEINFO)) {
|
||||
fileinfo(false, true, false);
|
||||
|
Reference in New Issue
Block a user