From d8c7ff13352d7182826b5716ff3b6a66df241231 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Wed, 30 May 2018 07:21:45 +0200 Subject: cleanup, test interactive -E --- test/functional/helpers.lua | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test/functional/helpers.lua') diff --git a/test/functional/helpers.lua b/test/functional/helpers.lua index 9895281773..a6d2764187 100644 --- a/test/functional/helpers.lua +++ b/test/functional/helpers.lua @@ -316,6 +316,14 @@ local function retry(max, max_ms, fn) end end +-- Starts a new global Nvim session. +-- Parameters are interpreted as startup args, OR a map with these keys: +-- args: Merged with the default `nvim_argv` set. +-- env : Defines the environment of the new session. +-- +-- Example: +-- clear('-e') +-- clear({args={'-e'}, env={TERM=term}}) local function clear(...) local args = {unpack(nvim_argv)} local new_args -- cgit