Add TabClosed event

TabClosed is triggered when a tab page closes.
This commit is contained in:
Felipe Morales
2015-01-05 01:03:22 -03:00
committed by Justin M. Keyes
parent 66d94869a0
commit 3ffc5d81c3
7 changed files with 51 additions and 2 deletions

View File

@@ -5245,6 +5245,7 @@ static struct event_name {
{"StdinReadPre", EVENT_STDINREADPRE},
{"SwapExists", EVENT_SWAPEXISTS},
{"Syntax", EVENT_SYNTAX},
{"TabClosed", EVENT_TABCLOSED},
{"TabEnter", EVENT_TABENTER},
{"TabLeave", EVENT_TABLEAVE},
{"TabNew", EVENT_TABNEW},
@@ -6634,7 +6635,8 @@ apply_autocmds_group (
|| event == EVENT_QUICKFIXCMDPRE
|| event == EVENT_COLORSCHEME
|| event == EVENT_QUICKFIXCMDPOST
|| event == EVENT_JOBACTIVITY)
|| event == EVENT_JOBACTIVITY
|| event == EVENT_TABCLOSED)
fname = vim_strsave(fname);
else
fname = FullName_save(fname, FALSE);