diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2016-06-23 19:02:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-23 19:02:40 +0200 |
commit | 65af001f2bcc35f19d64b4d2c1dbcd46d87432e8 (patch) | |
tree | 64b24b4f61001c9c892c1e8eaf91e8203d848ff7 /test/functional/helpers.lua | |
parent | c475e3f8d165e91cbafe4e34ae1ca3c857533703 (diff) | |
parent | e8a8342132d47a0f5b94248049238bf16b23715e (diff) | |
download | rneovim-65af001f2bcc35f19d64b4d2c1dbcd46d87432e8.tar.gz rneovim-65af001f2bcc35f19d64b4d2c1dbcd46d87432e8.tar.bz2 rneovim-65af001f2bcc35f19d64b4d2c1dbcd46d87432e8.zip |
Merge pull request #4952 from bfredl/counttest
test: fix command_count_spec
Diffstat (limited to 'test/functional/helpers.lua')
-rw-r--r-- | test/functional/helpers.lua | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/functional/helpers.lua b/test/functional/helpers.lua index 5eec5638f5..6e750b31a9 100644 --- a/test/functional/helpers.lua +++ b/test/functional/helpers.lua @@ -221,11 +221,10 @@ local function spawn(argv, merge) return Session.new(child_stream) end -local function clear(extra_cmd) +local function clear(...) local args = {unpack(nvim_argv)} - if extra_cmd ~= nil then - table.insert(args, '--cmd') - table.insert(args, extra_cmd) + for _, arg in ipairs({...}) do + table.insert(args, arg) end set_session(spawn(args)) end |