diff options
author | bfredl <bjorn.linse@gmail.com> | 2023-10-07 11:10:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-07 11:10:28 +0200 |
commit | 1f864139b2d7e3fcb73fb0b7f5291fbb1c6cad94 (patch) | |
tree | a840da6ae932605bd495948d258aaa050eebd1b7 /test | |
parent | 7f65431d90e18819009c30aa3ee2a680d3b3958d (diff) | |
parent | 1cd7824dd69ee14b734713e61bef6bb713db8547 (diff) | |
download | rneovim-1f864139b2d7e3fcb73fb0b7f5291fbb1c6cad94.tar.gz rneovim-1f864139b2d7e3fcb73fb0b7f5291fbb1c6cad94.tar.bz2 rneovim-1f864139b2d7e3fcb73fb0b7f5291fbb1c6cad94.zip |
Merge pull request #25522 from glepnir/4334
fix(ui): trigger TabNewEntered after split new tab
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/autocmd/tabnewentered_spec.lua | 8 |
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) |