Mercurial > vim
diff src/window.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 | c9ff1715f03d |
children | b6b71499d9af |
line wrap: on
line diff
--- a/src/window.c +++ b/src/window.c @@ -2806,6 +2806,7 @@ may_trigger_winscrolled(void) if (wp->w_last_topline != wp->w_topline || wp->w_last_leftcol != wp->w_leftcol + || wp->w_last_skipcol != wp->w_skipcol || wp->w_last_width != wp->w_width || wp->w_last_height != wp->w_height) { @@ -2820,6 +2821,7 @@ may_trigger_winscrolled(void) { wp->w_last_topline = wp->w_topline; wp->w_last_leftcol = wp->w_leftcol; + wp->w_last_skipcol = wp->w_skipcol; wp->w_last_width = wp->w_width; wp->w_last_height = wp->w_height; }