diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2015-08-29 17:10:06 +0200 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2015-09-08 10:56:15 +0200 |
commit | 087f3bacaf2c854f3d07fdece211c4670e140f32 (patch) | |
tree | e1dfb775ce8c4bd7df56f9edfad36ea4ed30b8a3 /test/functional/helpers.lua | |
parent | ffff2c9c47e63f1764ca743810a259d607f75104 (diff) | |
download | rneovim-087f3bacaf2c854f3d07fdece211c4670e140f32.tar.gz rneovim-087f3bacaf2c854f3d07fdece211c4670e140f32.tar.bz2 rneovim-087f3bacaf2c854f3d07fdece211c4670e140f32.zip |
encoding: test that `&encoding` cannot be changed
Helped-By: Justin M. Keyes <justinkz@gmail.com>
Diffstat (limited to 'test/functional/helpers.lua')
-rw-r--r-- | test/functional/helpers.lua | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/test/functional/helpers.lua b/test/functional/helpers.lua index 6c0288087a..6055cc3c59 100644 --- a/test/functional/helpers.lua +++ b/test/functional/helpers.lua @@ -183,11 +183,16 @@ local function spawn(argv) return session end -local function clear() +local function clear(extra_cmd) if session then session:exit(0) end - session = spawn(nvim_argv) + local args = {unpack(nvim_argv)} + if extra_cmd ~= nil then + table.insert(args, '--cmd') + table.insert(args, extra_cmd) + end + session = spawn(args) end local function insert(...) |