test: update tests to work with 'hidden'

This commit is contained in:
Gregory Anders
2021-08-17 21:30:58 -06:00
parent d417e67e59
commit d8ab8cccd0
25 changed files with 48 additions and 32 deletions

View File

@@ -311,7 +311,8 @@ describe('API/win', function()
eq({newwin}, meths.list_wins())
end)
it('handles changed buffer', function()
it("handles changed buffer when 'hidden' is unset", function()
command('set nohidden')
local oldwin = meths.get_current_win()
insert('text')
command('new')