summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-11-19 21:18:11 +0000
committerBram Moolenaar <Bram@vim.org>2022-11-19 21:18:11 +0000
commit0a60f79fd0c328b47b36279a95282e9f8d9e7512 (patch)
tree770ca1ec430efa0379f9bec4e3b50153d5f23041 /src/main.c
parentc896adbcdee8b2296433a61c1f009aae9f68a594 (diff)
patch 9.0.0913: only change in current window triggers the WinScrolled eventv9.0.0913
Problem: Only a change in the current window triggers the WinScrolled event. Solution: Trigger WinScrolled if any window scrolled or changed size. (issue #11576)
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 16a47b3333..a01331f163 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1469,6 +1469,9 @@ main_loop(
time_fd = NULL;
}
#endif
+ // After the first screen update may start triggering WinScrolled
+ // autocmd events. Store all the scroll positions and sizes now.
+ may_make_initial_scroll_size_snapshot();
}
#ifdef FEAT_GUI
if (need_mouse_correct)