aboutsummaryrefslogtreecommitdiff
path: root/test/functional/helpers.lua
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2017-04-26 13:10:21 +0200
committerBjörn Linse <bjorn.linse@gmail.com>2017-05-29 19:02:49 +0200
commit6a7593875827374c15484dd4eecd31a88f8c6f77 (patch)
treef032f5dc5cb056c9988d684b1f8387b41a17e48e /test/functional/helpers.lua
parent9cc185dc6d9d665fe5ba3702a0a8af09151fe5c4 (diff)
downloadrneovim-6a7593875827374c15484dd4eecd31a88f8c6f77.tar.gz
rneovim-6a7593875827374c15484dd4eecd31a88f8c6f77.tar.bz2
rneovim-6a7593875827374c15484dd4eecd31a88f8c6f77.zip
channels: implement sockopen() to connect to socket
Helped-By: oni-link <knil.ino@gmail.com>
Diffstat (limited to 'test/functional/helpers.lua')
-rw-r--r--test/functional/helpers.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/functional/helpers.lua b/test/functional/helpers.lua
index b03840b3fe..62b0ce1200 100644
--- a/test/functional/helpers.lua
+++ b/test/functional/helpers.lua
@@ -76,8 +76,8 @@ end
local session, loop_running, last_error
-local function set_session(s)
- if session then
+local function set_session(s, keep)
+ if session and not keep then
session:close()
end
session = s
@@ -609,6 +609,7 @@ local module = {
nvim = nvim,
nvim_async = nvim_async,
nvim_prog = nvim_prog,
+ nvim_argv = nvim_argv,
nvim_set = nvim_set,
nvim_dir = nvim_dir,
buffer = buffer,