aboutsummaryrefslogtreecommitdiff
path: root/test/functional/shada/helpers.lua
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2018-09-22 10:20:23 +0200
committerGitHub <noreply@github.com>2018-09-22 10:20:23 +0200
commitc236e80cf3dfae6df5c43ecfb19c7629c9884f7b (patch)
tree426eb0f7525621d9760bb2cbf394d5c42b691775 /test/functional/shada/helpers.lua
parent7f990741f7018b5e52833f2da6913b97c6d2d5ee (diff)
parent4da5cb38d396d76d8072815d150725f7c9a85078 (diff)
downloadrneovim-c236e80cf3dfae6df5c43ecfb19c7629c9884f7b.tar.gz
rneovim-c236e80cf3dfae6df5c43ecfb19c7629c9884f7b.tar.bz2
rneovim-c236e80cf3dfae6df5c43ecfb19c7629c9884f7b.zip
Merge pull request #9024 from bfredl/embed_ui2
always wait for UI with --embed, unless --headless is supplied
Diffstat (limited to 'test/functional/shada/helpers.lua')
-rw-r--r--test/functional/shada/helpers.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/functional/shada/helpers.lua b/test/functional/shada/helpers.lua
index 1312d762d8..d5e061bb50 100644
--- a/test/functional/shada/helpers.lua
+++ b/test/functional/shada/helpers.lua
@@ -9,9 +9,12 @@ local tmpname = helpers.tmpname()
local append_argv = nil
local function nvim_argv(shada_file, embed)
+ if embed == nil then
+ embed = true
+ end
local argv = {nvim_prog, '-u', 'NONE', '-i', shada_file or tmpname, '-N',
'--cmd', 'set shortmess+=I background=light noswapfile',
- embed or '--embed'}
+ '--headless', embed and '--embed' or nil}
if helpers.prepend_argv or append_argv then
return merge_args(helpers.prepend_argv, argv, append_argv)
else