diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-11-22 12:40:50 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-11-22 12:40:50 +0000 |
commit | 35fc61cb5b5eba8bbb9d8f0700332fbab38f40ca (patch) | |
tree | 352599f641e6c8c88d8574871f8b8e86b6168dba /src/proto | |
parent | ce30ccc06af7f2c03762e5b18dde37b26ea6ec42 (diff) | |
download | vim-git-35fc61cb5b5eba8bbb9d8f0700332fbab38f40ca.tar.gz |
patch 9.0.0917: the WinScrolled autocommand event is not enoughv9.0.0917
Problem: The WinScrolled autocommand event is not enough.
Solution: Add WinResized and provide information about what changed.
(closes #11576)
Diffstat (limited to 'src/proto')
-rw-r--r-- | src/proto/autocmd.pro | 1 | ||||
-rw-r--r-- | src/proto/window.pro | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/proto/autocmd.pro b/src/proto/autocmd.pro index 713ae245e..1f55f2d27 100644 --- a/src/proto/autocmd.pro +++ b/src/proto/autocmd.pro @@ -16,6 +16,7 @@ int apply_autocmds(event_T event, char_u *fname, char_u *fname_io, int force, bu int apply_autocmds_exarg(event_T event, char_u *fname, char_u *fname_io, int force, buf_T *buf, exarg_T *eap); int apply_autocmds_retval(event_T event, char_u *fname, char_u *fname_io, int force, buf_T *buf, int *retval); int trigger_cursorhold(void); +int has_winresized(void); int has_winscrolled(void); int has_cursormoved(void); int has_cursormovedI(void); diff --git a/src/proto/window.pro b/src/proto/window.pro index d675b7189..6522466be 100644 --- a/src/proto/window.pro +++ b/src/proto/window.pro @@ -20,7 +20,7 @@ int one_window(void); int win_close(win_T *win, int free_buf); void snapshot_windows_scroll_size(void); void may_make_initial_scroll_size_snapshot(void); -void may_trigger_winscrolled(void); +void may_trigger_win_scrolled_resized(void); void win_close_othertab(win_T *win, int free_buf, tabpage_T *tp); void win_free_all(void); win_T *winframe_remove(win_T *win, int *dirp, tabpage_T *tp); |