mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 17:21:49 +00:00
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.
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user