summaryrefslogtreecommitdiffstats
path: root/src/autocmd.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-08-28 19:16:15 +0100
committerBram Moolenaar <Bram@vim.org>2022-08-28 19:16:15 +0100
commit670ab0334b536e12d84810de88e73b7bcb01346d (patch)
tree1e3bc0379d79097634aa84cd1e3db94069a92624 /src/autocmd.c
parent2f892d8663498c21296ad6661dac1bb8372cfd10 (diff)
patch 9.0.0304: WinScrolled is not triggered when only skipcol changesv9.0.0304
Problem: WinScrolled is not triggered when only skipcol changes. Solution: Add w_last_skipcol and use it. (closes #10998)
Diffstat (limited to 'src/autocmd.c')
-rw-r--r--src/autocmd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/autocmd.c b/src/autocmd.c
index cc9d99d537..2e3026217a 100644
--- 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;
}