aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/float_spec.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-09-22 20:25:34 +0800
committerGitHub <noreply@github.com>2022-09-22 20:25:34 +0800
commit2083c1771ad2de44c8e085062a0777e694b0fd4d (patch)
treec52ab0bcfa19c0bd34818187420ea767caf5450c /test/functional/ui/float_spec.lua
parenta7f6f0e2ddf90f9c05838e72ffb8c60148b49109 (diff)
downloadrneovim-2083c1771ad2de44c8e085062a0777e694b0fd4d.tar.gz
rneovim-2083c1771ad2de44c8e085062a0777e694b0fd4d.tar.bz2
rneovim-2083c1771ad2de44c8e085062a0777e694b0fd4d.zip
fix(window): close floats first when closing buffer in other tab (#20284)
Diffstat (limited to 'test/functional/ui/float_spec.lua')
-rw-r--r--test/functional/ui/float_spec.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/functional/ui/float_spec.lua b/test/functional/ui/float_spec.lua
index a5a664cb3d..5e819f14a3 100644
--- a/test/functional/ui/float_spec.lua
+++ b/test/functional/ui/float_spec.lua
@@ -596,6 +596,11 @@ describe('float window', function()
meths.buf_delete(old_buf, {force = true})
eq(old_win, curwin().id)
end)
+ it('if called from non-floating window in another tabpage', function()
+ command('tab split')
+ eq(3, #meths.list_tabpages())
+ meths.buf_delete(old_buf, {force = true})
+ end)
it('if called from floating window with the same buffer', function()
meths.set_current_win(same_buf_float)
command('autocmd WinLeave * let g:win_leave = nvim_get_current_win()')