Fix crash if --embed is used more than once

This commit is contained in:
James McCoy
2018-10-01 22:58:47 -04:00
parent 65206714bc
commit eb7b2c7912
2 changed files with 14 additions and 4 deletions

View File

@@ -4,6 +4,7 @@ local Screen = require('test.functional.ui.screen')
local clear = helpers.clear
local command = helpers.command
local eq = helpers.eq
local eval = helpers.eval
local feed = helpers.feed
local funcs = helpers.funcs
local nvim_prog = helpers.nvim_prog
@@ -196,5 +197,10 @@ describe('startup', function()
funcs.system({nvim_prog, '-n', '-es' },
{ 'set encoding', '' }))
end)
it('does not crash if --embed is given twice', function()
clear{args={'--embed'}}
eq(2, eval('1+1'))
end)
end)