diff options
author | Felipe Morales <hel.sheep@gmail.com> | 2014-12-23 11:56:10 -0300 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2015-02-16 23:24:30 -0500 |
commit | 66d94869a0f01902d93597eae4244f9a64db82fc (patch) | |
tree | 268c3d71cfd37f77eecc5f830c92e62364405c21 /src | |
parent | 817be96be535a8aecc24a72f51fe2d6743ed4a24 (diff) | |
download | rneovim-66d94869a0f01902d93597eae4244f9a64db82fc.tar.gz rneovim-66d94869a0f01902d93597eae4244f9a64db82fc.tar.bz2 rneovim-66d94869a0f01902d93597eae4244f9a64db82fc.zip |
Add TabNewEntered
TabNewEntered is triggered after vim has entered a buffer in new tab.
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/ex_docmd.c | 2 | ||||
-rw-r--r-- | src/nvim/fileio.c | 1 | ||||
-rw-r--r-- | src/nvim/fileio.h | 1 |
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 */ |