terminal: preserve mode when using <Cmd>wincmd in terminal mode (#12254)

This commit is contained in:
Ghjuvan Lacambre
2020-06-22 23:22:58 +02:00
committed by GitHub
parent 1619410a05
commit 721f69c4af
2 changed files with 21 additions and 1 deletions

View File

@@ -103,4 +103,14 @@ describe(':terminal', function()
|
]])
end)
it('stays in terminal mode with <Cmd>wincmd', function()
command('terminal')
command('split')
command('terminal')
feed('a<Cmd>wincmd j<CR>')
eq(2, eval("winnr()"))
eq('t', eval('mode()'))
end)
end)