comparison src/autocmd.c @ 29932:27cb0eed6aef v9.0.0304

patch 9.0.0304: WinScrolled is not triggered when only skipcol changes Commit: https://github.com/vim/vim/commit/670ab0334b536e12d84810de88e73b7bcb01346d Author: zeertzjq <zeertzjq@outlook.com> Date: Sun Aug 28 19:16:15 2022 +0100 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 https://github.com/vim/vim/issues/10998)
author Bram Moolenaar <Bram@vim.org>
date Sun, 28 Aug 2022 20:30:03 +0200
parents 827d9f2b7a71
children b3367a7a3914
comparison
equal deleted inserted replaced
29931:6fbbf5ed15f0 29932:27cb0eed6aef
1247 // stop it from firing right after the first autocmd is defined. 1247 // stop it from firing right after the first autocmd is defined.
1248 if (event == EVENT_WINSCROLLED && !has_winscrolled()) 1248 if (event == EVENT_WINSCROLLED && !has_winscrolled())
1249 { 1249 {
1250 curwin->w_last_topline = curwin->w_topline; 1250 curwin->w_last_topline = curwin->w_topline;
1251 curwin->w_last_leftcol = curwin->w_leftcol; 1251 curwin->w_last_leftcol = curwin->w_leftcol;
1252 curwin->w_last_skipcol = curwin->w_skipcol;
1252 curwin->w_last_width = curwin->w_width; 1253 curwin->w_last_width = curwin->w_width;
1253 curwin->w_last_height = curwin->w_height; 1254 curwin->w_last_height = curwin->w_height;
1254 } 1255 }
1255 1256
1256 if (is_buflocal) 1257 if (is_buflocal)