aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/float_spec.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-03-10 10:33:10 +0800
committerGitHub <noreply@github.com>2024-03-10 10:33:10 +0800
commit6052b346f1b7a3fb616dfcefe3bc05cb6fe3f2f3 (patch)
tree2c2ba70720c195ad5133865102a28dbbd6128b13 /test/functional/ui/float_spec.lua
parent9bd4a2807960ea3e82b0454861b399f4ac6d8a92 (diff)
downloadrneovim-6052b346f1b7a3fb616dfcefe3bc05cb6fe3f2f3.tar.gz
rneovim-6052b346f1b7a3fb616dfcefe3bc05cb6fe3f2f3.tar.bz2
rneovim-6052b346f1b7a3fb616dfcefe3bc05cb6fe3f2f3.zip
revert: "fix(window): :close crash with autocmd, floats and tabpage" (#27796)
This reverts PR #27793. On second thought, this solution may still crash, because it can leave a window with a NULL buffer if there are autocommand windows or if closing a floating window fails. It also makes close_last_window_tabpage() more complicated, so revert it.
Diffstat (limited to 'test/functional/ui/float_spec.lua')
-rw-r--r--test/functional/ui/float_spec.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/functional/ui/float_spec.lua b/test/functional/ui/float_spec.lua
index 6bc3fd14ec..65a7d359af 100644
--- a/test/functional/ui/float_spec.lua
+++ b/test/functional/ui/float_spec.lua
@@ -893,7 +893,7 @@ describe('float window', function()
assert_alive()
end)
- it('does not crash if BufUnload makes it the only non-float in tabpage', function()
+ pending('does not crash if BufUnload makes it the only non-float in tabpage', function()
exec([[
tabnew
let g:buf = bufnr()
@@ -909,10 +909,9 @@ describe('float window', function()
assert_alive()
end)
- it('does not crash if WinClosed from floating windows closes it', function()
+ it('does not crash if WinClosed from floating window closes it', function()
exec([[
tabnew
- let g:buf = bufnr()
new
let s:win = win_getid()
call nvim_win_set_config(s:win,