aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerw7 <erw7.github@gmail.com>2019-06-01 12:19:58 +0900
committererw7 <erw7.github@gmail.com>2019-06-09 13:28:10 +0900
commit53551d823e2a4cc7fa7dc9f9027c21f23b08aeab (patch)
treec811aeb360759d4253e84de88a0aa1d8cf1a2b14
parent9609f327daee70fbb6752bde41a1accc5e38a65b (diff)
downloadrneovim-53551d823e2a4cc7fa7dc9f9027c21f23b08aeab.tar.gz
rneovim-53551d823e2a4cc7fa7dc9f9027c21f23b08aeab.tar.bz2
rneovim-53551d823e2a4cc7fa7dc9f9027c21f23b08aeab.zip
Add test for #7967
-rw-r--r--test/functional/core/startup_spec.lua25
1 files changed, 25 insertions, 0 deletions
diff --git a/test/functional/core/startup_spec.lua b/test/functional/core/startup_spec.lua
index 45bfa93b56..23e1ac7c93 100644
--- a/test/functional/core/startup_spec.lua
+++ b/test/functional/core/startup_spec.lua
@@ -221,6 +221,31 @@ describe('startup', function()
clear{args={'--embed'}}
eq(2, eval('1+1'))
end)
+
+ it('message display ends with enter #7967', function()
+ local screen
+ screen = Screen.new(60, 6)
+ screen:attach()
+ command([[let g:id = termopen('"]]..nvim_prog..
+ [[" -u NONE -i NONE --cmd "set noruler" --cmd "let g:foo = g:bar"')]])
+ screen:expect([[
+ ^ |
+ Error detected while processing pre-vimrc command line: |
+ E121: Undefined variable: g:bar |
+ E15: Invalid expression: g:bar |
+ Press ENTER or type command to continue |
+ |
+ ]])
+ command('call chansend(g:id, "\n")')
+ screen:expect([[
+ ^ |
+ ~ |
+ ~ |
+ [No Name] |
+ |
+ |
+ ]])
+ end)
end)
describe('sysinit', function()