diff options
author | Rom Grk <romgrk.cc@gmail.com> | 2020-10-28 03:59:26 -0400 |
---|---|---|
committer | Rom Grk <romgrk.cc@gmail.com> | 2020-10-28 03:59:26 -0400 |
commit | bc21843228ce255bee8108a78c3c509743c8fe0c (patch) | |
tree | f94bf9a807eddcec037bb78118ee51585204e0b6 /src/nvim/buffer_defs.h | |
parent | d2a38dab8085ddb973393ca7f077ff65d64f60ef (diff) | |
download | rneovim-bc21843228ce255bee8108a78c3c509743c8fe0c.tar.gz rneovim-bc21843228ce255bee8108a78c3c509743c8fe0c.tar.bz2 rneovim-bc21843228ce255bee8108a78c3c509743c8fe0c.zip |
feat: implement a working WinScrolled autocmd
Diffstat (limited to 'src/nvim/buffer_defs.h')
-rw-r--r-- | src/nvim/buffer_defs.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/nvim/buffer_defs.h b/src/nvim/buffer_defs.h index 1223f2bdab..ba71ac6b2b 100644 --- a/src/nvim/buffer_defs.h +++ b/src/nvim/buffer_defs.h @@ -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. |