mirror of
https://github.com/neovim/neovim.git
synced 2025-10-02 07:58:35 +00:00
feat: implement a working WinScrolled autocmd
This commit is contained in:
@@ -1204,6 +1204,15 @@ struct window_S {
|
||||
colnr_T w_skipcol; // starting column when a single line
|
||||
// doesn't fit in the window
|
||||
|
||||
/*
|
||||
* "w_last_topline" and "w_last_leftcol" are used to determine if
|
||||
* a Scroll autocommand should be emitted.
|
||||
*/
|
||||
linenr_T w_last_topline; ///< last known value for topline
|
||||
colnr_T w_last_leftcol; ///< last known value for leftcol
|
||||
int w_last_width; ///< last known value for width
|
||||
int w_last_height; ///< last known value for height
|
||||
|
||||
//
|
||||
// Layout of the window in the screen.
|
||||
// May need to add "msg_scrolled" to "w_winrow" in rare situations.
|
||||
|
Reference in New Issue
Block a user