aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nvim/ex_docmd.c2
-rw-r--r--src/nvim/fileio.c1
-rw-r--r--src/nvim/fileio.h1
3 files changed, 3 insertions, 1 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c
index 9d2285acb5..189881be34 100644
--- a/src/nvim/ex_docmd.c
+++ b/src/nvim/ex_docmd.c
@@ -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
diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c
index c8944fffe4..6aeb36b719 100644
--- a/src/nvim/fileio.c
+++ b/src/nvim/fileio.c
@@ -5248,6 +5248,7 @@ static struct event_name {
{"TabEnter", EVENT_TABENTER},
{"TabLeave", EVENT_TABLEAVE},
{"TabNew", EVENT_TABNEW},
+ {"TabNewEntered", EVENT_TABNEWENTERED},
{"TermChanged", EVENT_TERMCHANGED},
{"TermResponse", EVENT_TERMRESPONSE},
{"TextChanged", EVENT_TEXTCHANGED},
diff --git a/src/nvim/fileio.h b/src/nvim/fileio.h
index 134759577c..48d96760db 100644
--- a/src/nvim/fileio.h
+++ b/src/nvim/fileio.h
@@ -96,6 +96,7 @@ typedef enum auto_event {
EVENT_TABLEAVE, /* before leaving a tab page */
EVENT_TABENTER, /* after entering a tab page */
EVENT_TABNEW, /* when creating a new tab */
+ EVENT_TABNEWENTERED, /* after entering a new tab */
EVENT_SHELLCMDPOST, /* after ":!cmd" */
EVENT_SHELLFILTERPOST, /* after ":1,2!cmd", ":w !cmd", ":r !cmd". */
EVENT_TEXTCHANGED, /* text was modified */