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)
diff --git a/src/vim.h b/src/vim.h
index be0a640..14630e6 100644
--- a/src/vim.h
+++ b/src/vim.h
@@ -1407,7 +1407,8 @@
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
};