autocmd: add WinClosed event

- only fire once, just before freeing mem
- trigger when on a different buffer
- avoid recursive calls in another tab
This commit is contained in:
Marcos ALMEIDA
2018-09-29 20:40:53 +02:00
committed by Justin M. Keyes
parent fb8b0503ba
commit 757aad92e8
5 changed files with 105 additions and 5 deletions

View File

@@ -110,6 +110,7 @@ return {
'WinEnter', -- after entering a window
'WinLeave', -- before leaving a window
'WinNew', -- when entering a new window
'WinClosed', -- after closing a window
},
aliases = {
BufCreate = 'BufAdd',
@@ -129,5 +130,6 @@ return {
TermOpen=true,
UIEnter=true,
UILeave=true,
WinClosed=true,
},
}