aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2021-11-18 10:11:09 +0800
committerGitHub <noreply@github.com>2021-11-17 21:11:09 -0500
commitdba3590a0e216943392b359d12000393a528be72 (patch)
tree5fa1d7d422e27194396df7904de9dc1064719017 /runtime
parent5ff972cafe67dbaad7deafa2de60513f763732f6 (diff)
downloadrneovim-dba3590a0e216943392b359d12000393a528be72.tar.gz
rneovim-dba3590a0e216943392b359d12000393a528be72.tar.bz2
rneovim-dba3590a0e216943392b359d12000393a528be72.zip
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.
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/autocmd.txt5
-rw-r--r--runtime/doc/vim_diff.txt1
2 files changed, 3 insertions, 3 deletions
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. <afile> expands to the
- |window-ID|.
+WinClosed After closing a window. The pattern is
+ matched against the |window-ID|. Both
+ <amatch> and <afile> 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