aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/buffer_defs.h
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2020-11-07 15:13:20 +0100
committerGitHub <noreply@github.com>2020-11-07 15:13:20 +0100
commite5d83a3bf344a4ab0ef539d70004c2b771e1044a (patch)
treec4de9a896700ff8a7131ab430cc108d90fd2774a /src/nvim/buffer_defs.h
parentda134270d3e9f8a4824b0e0540bf017f7e59b06e (diff)
parent0fce70252d8e5ccf4cb6f141d1c388966f9f3482 (diff)
downloadrneovim-e5d83a3bf344a4ab0ef539d70004c2b771e1044a.tar.gz
rneovim-e5d83a3bf344a4ab0ef539d70004c2b771e1044a.tar.bz2
rneovim-e5d83a3bf344a4ab0ef539d70004c2b771e1044a.zip
Merge pull request #13117 from romgrk/add-scroll-events
Implement scroll autocommand
Diffstat (limited to 'src/nvim/buffer_defs.h')
-rw-r--r--src/nvim/buffer_defs.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nvim/buffer_defs.h b/src/nvim/buffer_defs.h
index 4efc341875..b72ca51517 100644
--- a/src/nvim/buffer_defs.h
+++ b/src/nvim/buffer_defs.h
@@ -1230,6 +1230,13 @@ 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.