From dba3590a0e216943392b359d12000393a528be72 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Thu, 18 Nov 2021 10:11:09 +0800 Subject: vim-patch:8.2.3591: no event is triggered when closing a window (#16306) Problem: No event is triggered when closing a window. Solution: Add the WinClosed event. (Naohiro Ono, closes vim/vim#9110) https://github.com/vim/vim/commit/23beefed73aadb243fb67cf944e3d60fe8c038bb Nvim has already implemented this feature, so this only changes tests and docs. --- runtime/doc/autocmd.txt | 5 +++-- runtime/doc/vim_diff.txt | 1 - 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'runtime') diff --git a/runtime/doc/autocmd.txt b/runtime/doc/autocmd.txt index 6c41dd3b10..2737ac9b9f 100644 --- a/runtime/doc/autocmd.txt +++ b/runtime/doc/autocmd.txt @@ -1002,8 +1002,9 @@ VimResume After Nvim resumes from |suspend| state. *VimSuspend* VimSuspend Before Nvim enters |suspend| state. *WinClosed* -WinClosed After closing a window. expands to the - |window-ID|. +WinClosed After closing a window. The pattern is + matched against the |window-ID|. Both + and are set to the |window-ID|. After WinLeave. Non-recursive (event cannot trigger itself). See also |ExitPre|, |QuitPre|. diff --git a/runtime/doc/vim_diff.txt b/runtime/doc/vim_diff.txt index 77bf1d29eb..d88f4f42e8 100644 --- a/runtime/doc/vim_diff.txt +++ b/runtime/doc/vim_diff.txt @@ -186,7 +186,6 @@ Events: |TermOpen| |UIEnter| |UILeave| - |WinClosed| Functions: |dictwatcheradd()| notifies a callback whenever a |Dict| is modified -- cgit