mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 09:12:07 +00:00
fix(window): close floats first when closing buffer in other tab (#20284)
This commit is contained in:
@@ -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()')
|
||||
|
Reference in New Issue
Block a user