test(tabpage_spec): actually test for nvim_win_hide

This commit is contained in:
zeertzjq 2022-09-23 10:17:44 +08:00 committed by GitHub
parent 9aead1f670
commit 7a70e9587c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -90,7 +90,7 @@ describe('tabpage', function()
eq({2, 1}, funcs.win_screenpos(0))
local win3 = curwin().id
meths.win_close(win2, true)
meths.win_hide(win2)
eq(win3, curwin().id)
eq(1, #meths.list_tabpages())
eq({1, 1}, funcs.win_screenpos(0))