diff 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
line wrap: on
line diff
--- a/src/autocmd.c
+++ b/src/autocmd.c
@@ -1249,6 +1249,7 @@ do_autocmd_event(
 		{
 		    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;
 		}