0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

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 #10998)
This commit is contained in:
zeertzjq
2022-08-28 19:16:15 +01:00
committed by Bram Moolenaar
parent 2f892d8663
commit 670ab0334b
5 changed files with 40 additions and 1 deletions

View File

@@ -3542,9 +3542,10 @@ struct window_S
// window
#endif
// 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