aboutsummaryrefslogtreecommitdiff
path: root/test/functional/core
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-05-30 07:21:45 +0200
committerJustin M. Keyes <justinkz@gmail.com>2018-06-04 02:09:28 +0200
commitd8c7ff13352d7182826b5716ff3b6a66df241231 (patch)
treed9c451c4933a6fd60683ae2925abd3c2ae34d90d /test/functional/core
parent1f300e08b8c0c35b2f3d79506ae9817cd8591624 (diff)
downloadrneovim-d8c7ff13352d7182826b5716ff3b6a66df241231.tar.gz
rneovim-d8c7ff13352d7182826b5716ff3b6a66df241231.tar.bz2
rneovim-d8c7ff13352d7182826b5716ff3b6a66df241231.zip
cleanup, test interactive -E
Diffstat (limited to 'test/functional/core')
-rw-r--r--test/functional/core/startup_spec.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/functional/core/startup_spec.lua b/test/functional/core/startup_spec.lua
index d15faaf0a9..f1f96ba626 100644
--- a/test/functional/core/startup_spec.lua
+++ b/test/functional/core/startup_spec.lua
@@ -4,6 +4,7 @@ local Screen = require('test.functional.ui.screen')
local clear = helpers.clear
local command = helpers.command
local eq = helpers.eq
+local feed = helpers.feed
local funcs = helpers.funcs
local nvim_prog = helpers.nvim_prog
local nvim_set = helpers.nvim_set
@@ -121,6 +122,18 @@ describe('startup', function()
{ 'ohyeah', '' }))
end)
+ it('-e/-E interactive #7679', function()
+ clear('-E')
+ local screen = Screen.new(25, 3)
+ screen:attach()
+ feed("put ='from -E'<CR>")
+ screen:expect([[
+ |
+ from -E |
+ :^ |
+ ]])
+ end)
+
it('stdin with -es/-Es #7679', function()
local input = { 'append', 'line1', 'line2', '.', '%print', '' }
local inputstr = table.concat(input, '\n')