aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/buffer_defs.h
diff options
context:
space:
mode:
authorRom Grk <romgrk.cc@gmail.com>2020-10-19 12:27:17 -0400
committerRom Grk <romgrk.cc@gmail.com>2020-10-21 16:18:20 -0400
commitb83d8223ffee099634a4352443cb56a94ebfcc22 (patch)
tree185b78fe3292f93a24744dc36c9b081af2be0d88 /src/nvim/buffer_defs.h
parent0f590ae2a8bcebcb1398cb30997bd718d6f466e5 (diff)
downloadrneovim-b83d8223ffee099634a4352443cb56a94ebfcc22.tar.gz
rneovim-b83d8223ffee099634a4352443cb56a94ebfcc22.tar.bz2
rneovim-b83d8223ffee099634a4352443cb56a94ebfcc22.zip
implement scroll autocommand
Diffstat (limited to 'src/nvim/buffer_defs.h')
-rw-r--r--src/nvim/buffer_defs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/buffer_defs.h b/src/nvim/buffer_defs.h
index 1223f2bdab..546054bb19 100644
--- a/src/nvim/buffer_defs.h
+++ b/src/nvim/buffer_defs.h
@@ -1204,6 +1204,9 @@ struct window_S {
colnr_T w_skipcol; // starting column when a single line
// doesn't fit in the window
+ linenr_T w_last_topline; ///< last known value for topline
+ colnr_T w_last_leftcol; ///< last known value for leftcol
+
//
// Layout of the window in the screen.
// May need to add "msg_scrolled" to "w_winrow" in rare situations.