fix(unhide): close floating windows first (#25318)

This commit is contained in:
zeertzjq
2023-09-23 14:42:59 +08:00
committed by GitHub
parent c88bb658ce
commit c0a29931e2
2 changed files with 16 additions and 3 deletions

View File

@@ -522,6 +522,16 @@ describe('float window', function()
eq(5, meths.get_option_value('scroll', {win=float_win.id}))
end)
it(':unhide works when there are floating windows #17797', function()
local float_opts = {relative = 'editor', row = 1, col = 1, width = 10, height = 10}
local w0 = curwin()
meths.open_win(0, false, float_opts)
meths.open_win(0, false, float_opts)
eq(3, #meths.list_wins())
command('unhide')
eq({ w0 }, meths.list_wins())
end)
describe('with only one tabpage,', function()
local float_opts = {relative = 'editor', row = 1, col = 1, width = 1, height = 1}
local old_buf, old_win