Add TabNewEntered

TabNewEntered is triggered after vim has entered a buffer in new tab.
This commit is contained in:
Felipe Morales
2014-12-23 11:56:10 -03:00
committed by Justin M. Keyes
parent 817be96be5
commit 66d94869a0
6 changed files with 32 additions and 3 deletions

View File

@@ -5716,8 +5716,8 @@ void ex_splitview(exarg_T *eap)
: eap->addr_count == 0 ? 0
: (int)eap->line2 + 1) != FAIL) {
apply_autocmds(EVENT_TABNEW, eap->arg, eap->arg, FALSE, curbuf);
entering_new_tab = true;
do_exedit(eap, old_curwin);
apply_autocmds(EVENT_TABNEWENTERED, NULL, NULL, FALSE, curbuf);
/* set the alternate buffer for the window we came from */
if (curwin != old_curwin