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/autocmd.c | |
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/autocmd.c')
-rw-r--r-- | src/nvim/autocmd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/autocmd.c b/src/nvim/autocmd.c index 2fe9df2206..1c1de214cd 100644 --- a/src/nvim/autocmd.c +++ b/src/nvim/autocmd.c @@ -1119,6 +1119,7 @@ int autocmd_register(int64_t id, event_T event, char *pat, int patlen, int group if (event == EVENT_WINSCROLLED && !has_event(EVENT_WINSCROLLED)) { curwin->w_last_topline = curwin->w_topline; curwin->w_last_leftcol = curwin->w_leftcol; + curwin->w_last_skipcol = curwin->w_skipcol; curwin->w_last_width = curwin->w_width; curwin->w_last_height = curwin->w_height; } |