diff --git a/test/functional/autocmd/termxx_spec.lua b/test/functional/autocmd/termxx_spec.lua index 802020494b..2522a28a9d 100644 --- a/test/functional/autocmd/termxx_spec.lua +++ b/test/functional/autocmd/termxx_spec.lua @@ -149,21 +149,21 @@ it('autocmd TermEnter, TermLeave', function() -- TermLeave is also triggered by :quit. command('split foo') + feed('') -- Add input to separate two RPC requests command('wincmd w') feed('i') command('q!') - eq( - { - {'TermOpen', 'n'}, - {'TermEnter', 't'}, - {'TermLeave', 'n'}, - {'TermEnter', 't'}, - {'TermLeave', 'n'}, - {'TermEnter', 't'}, - {'TermClose', 't'}, - {'TermLeave', 'n'}, - }, - eval('g:evs')) + feed('') -- Add input to separate two RPC requests + eq({ + {'TermOpen', 'n'}, + {'TermEnter', 't'}, + {'TermLeave', 'n'}, + {'TermEnter', 't'}, + {'TermLeave', 'n'}, + {'TermEnter', 't'}, + {'TermClose', 't'}, + {'TermLeave', 'n'}, + }, eval('g:evs')) end) describe('autocmd TextChangedT', function()