diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2019-04-20 10:46:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-20 10:46:20 +0200 |
commit | 3f712185058f7dca9fded0d49b333929d3f8558d (patch) | |
tree | 0bebfea662700b84b45edc525b3d15357baa6698 /test/functional/terminal/ex_terminal_spec.lua | |
parent | 477e1a86481dc9a900b226f604ffff9859494b54 (diff) | |
parent | b3fd83a0eae2d6353dc72ed62ba32949cc11a1b0 (diff) | |
download | rneovim-3f712185058f7dca9fded0d49b333929d3f8558d.tar.gz rneovim-3f712185058f7dca9fded0d49b333929d3f8558d.tar.bz2 rneovim-3f712185058f7dca9fded0d49b333929d3f8558d.zip |
Merge pull request #9926 from glacambre/fix_9889
Fix #9889: stopinsert prohibiting terminal mode
Diffstat (limited to 'test/functional/terminal/ex_terminal_spec.lua')
-rw-r--r-- | test/functional/terminal/ex_terminal_spec.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/functional/terminal/ex_terminal_spec.lua b/test/functional/terminal/ex_terminal_spec.lua index ca5737db7f..f3849709e3 100644 --- a/test/functional/terminal/ex_terminal_spec.lua +++ b/test/functional/terminal/ex_terminal_spec.lua @@ -106,6 +106,15 @@ describe(':terminal', function() command('stopinsert') eq({ blocking=false, mode='n' }, nvim('get_mode')) end) + + it(':stopinsert in normal mode doesn\'t break insert mode #9889', function() + command(':terminal') + eq({ blocking=false, mode='n' }, nvim('get_mode')) + command(':stopinsert') + eq({ blocking=false, mode='n' }, nvim('get_mode')) + feed('a') + eq({ blocking=false, mode='t' }, nvim('get_mode')) + end) end) describe(':terminal (with fake shell)', function() |