diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-11-20 22:00:13 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-20 22:00:13 +0800 |
commit | 565442ec421eeef0abe915d23ba481e8b75c6c38 (patch) | |
tree | 574d5e54be89621d57cbd0b23b2a64250522355f /src/nvim/normal.c | |
parent | 822eabc5e123bca71ba945467c3b01110bb0e003 (diff) | |
parent | d6bd9c77335e6a0b936e5b15f1b1df7e8af7cafd (diff) | |
download | rneovim-565442ec421eeef0abe915d23ba481e8b75c6c38.tar.gz rneovim-565442ec421eeef0abe915d23ba481e8b75c6c38.tar.bz2 rneovim-565442ec421eeef0abe915d23ba481e8b75c6c38.zip |
Merge pull request #21136 from zeertzjq/vim-9.0.0913
vim-patch:9.0.{partial:0913,0915}: only change in current window triggers the WinScrolled event
Diffstat (limited to 'src/nvim/normal.c')
-rw-r--r-- | src/nvim/normal.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/normal.c b/src/nvim/normal.c index ed689df91c..8207710b6b 100644 --- a/src/nvim/normal.c +++ b/src/nvim/normal.c @@ -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 |