diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-08-29 06:16:20 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-29 06:16:20 +0800 |
commit | 1dcaa75a6564b8a90e74a96e242803c6aa3f59cf (patch) | |
tree | 96d63da1db563c7973d8774d387e34fcd1894f9e /src/nvim/buffer_defs.h | |
parent | b21980bd607e952fe52957aec3214367bd48527b (diff) | |
download | rneovim-1dcaa75a6564b8a90e74a96e242803c6aa3f59cf.tar.gz rneovim-1dcaa75a6564b8a90e74a96e242803c6aa3f59cf.tar.bz2 rneovim-1dcaa75a6564b8a90e74a96e242803c6aa3f59cf.zip |
fix(events): triggered WinScrolled when only skipcol changed (#19972)
fix(events): trigger WinScrolled when only skipcol changed
vim-patch:9.0.0304: WinScrolled is not triggered when only skipcol changes
Problem: WinScrolled is not triggered when only skipcol changes.
Solution: Add w_last_skipcol and use it. (closes vim/vim#10998)
https://github.com/vim/vim/commit/670ab0334b536e12d84810de88e73b7bcb01346d
Diffstat (limited to 'src/nvim/buffer_defs.h')
-rw-r--r-- | src/nvim/buffer_defs.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/buffer_defs.h b/src/nvim/buffer_defs.h index 58bdd2c0a8..319c2addba 100644 --- a/src/nvim/buffer_defs.h +++ b/src/nvim/buffer_defs.h @@ -1240,9 +1240,10 @@ struct window_S { colnr_T w_skipcol; // starting column when a single line // doesn't fit in the window - // four fields that are only used when there is a WinScrolled autocommand + // five 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 + colnr_T w_last_skipcol; ///< last known value for w_skipcol int w_last_width; ///< last known value for w_width int w_last_height; ///< last known value for w_height |