mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 22:48:34 +00:00
vim-patch:partial:9.0.0913: only change in current window triggers the WinScrolled event
Problem: Only a change in the current window triggers the WinScrolled
event.
Solution: Trigger WinScrolled if any window scrolled or changed size.
(issue vim/vim#11576)
0a60f79fd0
Skip locking of window layout and E1312.
Copy the latest version of all WinScrolled tests from Vim.
Note: patch 9.0.0915 is needed for the Lua tests to pass.
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
@@ -1397,6 +1397,9 @@ static int normal_check(VimState *state)
|
||||
fclose(time_fd);
|
||||
time_fd = NULL;
|
||||
}
|
||||
// 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();
|
||||
}
|
||||
|
||||
// May perform garbage collection when waiting for a character, but
|
||||
|
Reference in New Issue
Block a user