aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/functional/autocmd/termxx_spec.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/functional/autocmd/termxx_spec.lua b/test/functional/autocmd/termxx_spec.lua
index 64f16cf779..baf2bb6071 100644
--- a/test/functional/autocmd/termxx_spec.lua
+++ b/test/functional/autocmd/termxx_spec.lua
@@ -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')