diff options
author | naohiro ono <obcat@icloud.com> | 2021-11-13 12:38:49 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-11-13 12:38:49 +0000 |
commit | 23beefed73aadb243fb67cf944e3d60fe8c038bb (patch) | |
tree | 8d03d8a6bc3126588a637252bd1a23e53baeaabf /runtime | |
parent | a0fca17251bf491db7b8d302ce22dee844597e82 (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 'runtime')
-rw-r--r-- | runtime/doc/autocmd.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/runtime/doc/autocmd.txt b/runtime/doc/autocmd.txt index 6a4edf9039..fdac7daad2 100644 --- a/runtime/doc/autocmd.txt +++ b/runtime/doc/autocmd.txt @@ -348,6 +348,7 @@ Name triggered by ~ |WinNew| after creating a new window |TabNew| after creating a new tab page +|WinClosed| after closing a window |TabClosed| after closing a tab page |WinEnter| after entering another window |WinLeave| before leaving a window @@ -1280,6 +1281,12 @@ VimResume When the Vim instance is resumed after being VimSuspend When the Vim instance is suspended. Only when CTRL-Z was typed inside Vim, not when the SIGSTOP or SIGTSTP signal was sent to Vim. + *WinClosed* +WinClosed After closing a window. The pattern is + matched against the |window-ID|. Both + <amatch> and <afile> are set to the + |window-ID|. Non-recursive (event cannot + trigger itself). *WinEnter* WinEnter After entering another window. Not done for the first window, when Vim has just started. |