0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -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:
LemonBoy
2022-04-08 15:18:45 +01:00
committed by Bram Moolenaar
parent 18ee0f603e
commit 0937182d49
12 changed files with 153 additions and 5 deletions

View File

@@ -3510,6 +3510,12 @@ struct window_S
// window
#endif
// four fields that are only used when there is a WinScrolled autocommand
linenr_T w_last_topline; // last known value for w_topline
colnr_T w_last_leftcol; // last known value for w_leftcol
int w_last_width; // last known value for w_width
int w_last_height; // last known value for w_height
/*
* Layout of the window in the screen.
* May need to add "msg_scrolled" to "w_winrow" in rare situations.