test(autocmd/termxx_spec): properly setup TextChangedT tests (#30787)

This commit is contained in:
zeertzjq 2024-10-13 11:02:28 +08:00 committed by GitHub
parent b56aa80a26
commit fb74fd2954
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -198,8 +198,11 @@ it('autocmd TermEnter, TermLeave', function()
end)
describe('autocmd TextChangedT', function()
clear()
local screen = tt.setup_screen()
local screen
before_each(function()
clear()
screen = tt.setup_screen()
end)
it('works', function()
command('autocmd TextChangedT * ++once let g:called = 1')