From 43536568ba0b68f2c5ffc5a810328a16327cffbc Mon Sep 17 00:00:00 2001 From: Dimitri Merejkowsky Date: Mon, 27 Jun 2016 21:00:58 +0200 Subject: [RFC] Fix #4979: Trigger TabNewEntered also with T Original patch by @fmoralesc --- test/functional/autocmd/tabnewentered_spec.lua | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'test') diff --git a/test/functional/autocmd/tabnewentered_spec.lua b/test/functional/autocmd/tabnewentered_spec.lua index 53bbca9f39..7fa3dddb93 100644 --- a/test/functional/autocmd/tabnewentered_spec.lua +++ b/test/functional/autocmd/tabnewentered_spec.lua @@ -18,5 +18,14 @@ describe('TabNewEntered', function() eq("\n\""..tmp_path.."\" [New File]\ntabnewentered:4:4\ntabnewentered:match", nvim('command_output', 'tabnew '..tmp_path)) end) end) + describe('with CTRL-W T', function() + it('works when opening a new tab with CTRL-W T', function() + clear() + nvim('command', 'au! TabNewEntered * echom "entered"') + nvim('command', 'tabnew test.x2') + nvim('command', 'split') + eq('\nentered', nvim('command_output', 'execute "normal \\T"')) + end) + end) end) end) -- cgit