aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorglepnir <glephunter@gmail.com>2023-10-06 19:40:02 +0800
committerglepnir <glephunter@gmail.com>2023-10-07 16:40:57 +0800
commit1cd7824dd69ee14b734713e61bef6bb713db8547 (patch)
tree0b0db59c0cba3013db3214d56e1e1ac659629d85 /test
parent9b3045103f7d56e5ccd0574dcb93e953b72d5f50 (diff)
downloadrneovim-1cd7824dd69ee14b734713e61bef6bb713db8547.tar.gz
rneovim-1cd7824dd69ee14b734713e61bef6bb713db8547.tar.bz2
rneovim-1cd7824dd69ee14b734713e61bef6bb713db8547.zip
fix(ui): trigger TabNewEntered after split new tab
Diffstat (limited to 'test')
-rw-r--r--test/functional/autocmd/tabnewentered_spec.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/functional/autocmd/tabnewentered_spec.lua b/test/functional/autocmd/tabnewentered_spec.lua
index f3443f317d..6e167dd55c 100644
--- a/test/functional/autocmd/tabnewentered_spec.lua
+++ b/test/functional/autocmd/tabnewentered_spec.lua
@@ -35,6 +35,14 @@ describe('TabNewEntered', function()
eq('entered', nvim('exec', 'execute "normal \\<C-W>T"', true))
end)
end)
+ describe('with tab split #4334', function()
+ it('works when create a tab by using tab split command', function()
+ clear()
+ nvim('command', 'au! TabNewEntered * let b:entered = "entered"')
+ nvim('command', 'tab split')
+ eq('entered', nvim('exec', 'echo b:entered', true))
+ end)
+ end)
end)
end)