diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-04-12 05:48:23 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-12 05:48:23 +0800 |
commit | dbd5242d8e10db4ed077547755f0d84aa8261cb5 (patch) | |
tree | 507feed5fe2cbfd0e807719424aec1c472de2879 /src/nvim/buffer_defs.h | |
parent | 10b40440ddbdc979a47335790988966b4e9fb6f1 (diff) | |
parent | 6be4fd888c4972a411217e486037997720ece6be (diff) | |
download | rneovim-dbd5242d8e10db4ed077547755f0d84aa8261cb5.tar.gz rneovim-dbd5242d8e10db4ed077547755f0d84aa8261cb5.tar.bz2 rneovim-dbd5242d8e10db4ed077547755f0d84aa8261cb5.zip |
Merge pull request #18075 from zeertzjq/vim-8.2.4713
vim-patch:8.2.4713: plugins cannot track text scrolling
Diffstat (limited to 'src/nvim/buffer_defs.h')
-rw-r--r-- | src/nvim/buffer_defs.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/nvim/buffer_defs.h b/src/nvim/buffer_defs.h index 2bb45e9fa0..375bebc5ac 100644 --- a/src/nvim/buffer_defs.h +++ b/src/nvim/buffer_defs.h @@ -1269,12 +1269,11 @@ 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 + // 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. |