mirror of
https://github.com/neovim/neovim.git
synced 2025-12-08 07:32:40 +00:00
Add test for #7967
This commit is contained in:
@@ -221,6 +221,31 @@ describe('startup', function()
|
|||||||
clear{args={'--embed'}}
|
clear{args={'--embed'}}
|
||||||
eq(2, eval('1+1'))
|
eq(2, eval('1+1'))
|
||||||
end)
|
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)
|
end)
|
||||||
|
|
||||||
describe('sysinit', function()
|
describe('sysinit', function()
|
||||||
|
|||||||
Reference in New Issue
Block a user