0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

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 #10998)
This commit is contained in:
zeertzjq
2022-08-28 19:16:15 +01:00
committed by Bram Moolenaar
parent 2f892d8663
commit 670ab0334b
5 changed files with 40 additions and 1 deletions

View File

@@ -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;
}