mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 8.2.4713: plugins cannot track text scrolling
Problem: Plugins cannot track text scrolling. Solution: Add the WinScrolled event. (closes #10102)
This commit is contained in:
@@ -1336,6 +1336,14 @@ main_loop(
|
||||
curbuf->b_last_changedtick = CHANGEDTICK(curbuf);
|
||||
}
|
||||
|
||||
// Ensure curwin->w_topline and curwin->w_leftcol are up to date
|
||||
// before triggering a WinScrolled autocommand.
|
||||
update_topline();
|
||||
validate_cursor();
|
||||
|
||||
if (!finish_op)
|
||||
may_trigger_winscrolled(curwin);
|
||||
|
||||
// If nothing is pending and we are going to wait for the user to
|
||||
// type a character, trigger SafeState.
|
||||
may_trigger_safestate(!op_pending() && restart_edit == 0);
|
||||
|
Reference in New Issue
Block a user