Mercurial > vim
diff src/vim.h @ 31166:a86ee6c0309e v9.0.0917
patch 9.0.0917: the WinScrolled autocommand event is not enough
Commit: https://github.com/vim/vim/commit/35fc61cb5b5eba8bbb9d8f0700332fbab38f40ca
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Nov 22 12:40:50 2022 +0000
patch 9.0.0917: the WinScrolled autocommand event is not enough
Problem: The WinScrolled autocommand event is not enough.
Solution: Add WinResized and provide information about what changed.
(closes #11576)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 22 Nov 2022 13:45:04 +0100 |
parents | d5a56c991218 |
children | dcde141f2d1e |
line wrap: on
line diff
--- a/src/vim.h +++ b/src/vim.h @@ -1407,7 +1407,8 @@ enum auto_event EVENT_WINCLOSED, // after closing a window EVENT_VIMSUSPEND, // before Vim is suspended EVENT_VIMRESUME, // after Vim is resumed - EVENT_WINSCROLLED, // after Vim window was scrolled + EVENT_WINRESIZED, // after a window was resized + EVENT_WINSCROLLED, // after a window was scrolled or resized NUM_EVENTS // MUST be the last one };