summaryrefslogtreecommitdiffstats
path: root/src/vim.h
diff options
context:
space:
mode:
authornaohiro ono <obcat@icloud.com>2021-11-13 12:38:49 +0000
committerBram Moolenaar <Bram@vim.org>2021-11-13 12:38:49 +0000
commit23beefed73aadb243fb67cf944e3d60fe8c038bb (patch)
tree8d03d8a6bc3126588a637252bd1a23e53baeaabf /src/vim.h
parenta0fca17251bf491db7b8d302ce22dee844597e82 (diff)
patch 8.2.3591: no event is triggered when closing a windowv8.2.3591
Problem: No event is triggered when closing a window. Solution: Add the WinClosed event. (Naohiro Ono, closes #9110)
Diffstat (limited to 'src/vim.h')
-rw-r--r--src/vim.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vim.h b/src/vim.h
index 22451c7e47..f86d68d04f 100644
--- a/src/vim.h
+++ b/src/vim.h
@@ -1379,6 +1379,7 @@ enum auto_event
EVENT_WINENTER, // after entering a window
EVENT_WINLEAVE, // before leaving a window
EVENT_WINNEW, // when entering a new window
+ EVENT_WINCLOSED, // after closing a window
EVENT_VIMSUSPEND, // before Vim is suspended
EVENT_VIMRESUME, // after Vim is resumed