autocmd: WinClosed exposes window id as <afile>

This commit is contained in:
notomo
2020-01-14 22:34:05 +09:00
committed by Justin M. Keyes
parent 757aad92e8
commit 2b8e66c6ce
3 changed files with 13 additions and 3 deletions

View File

@@ -6862,7 +6862,8 @@ static bool apply_autocmds_group(event_T event, char_u *fname, char_u *fname_io,
|| event == EVENT_SPELLFILEMISSING
|| event == EVENT_SYNTAX
|| event == EVENT_SIGNAL
|| event == EVENT_TABCLOSED) {
|| event == EVENT_TABCLOSED
|| event == EVENT_WINCLOSED) {
fname = vim_strsave(fname);
} else {
fname = (char_u *)FullName_save((char *)fname, false);