diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-06-10 15:10:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-10 15:10:59 +0200 |
commit | b8363283faac5e02cd9961119da7accb3d35d420 (patch) | |
tree | 7c7007656dd04dcc8b950c5fb00d98c2c060b39f /test/functional/helpers.lua | |
parent | 23d172a948e77c4e1d03db3b06efac6e9edd3695 (diff) | |
parent | d8c7ff13352d7182826b5716ff3b6a66df241231 (diff) | |
download | rneovim-b8363283faac5e02cd9961119da7accb3d35d420.tar.gz rneovim-b8363283faac5e02cd9961119da7accb3d35d420.tar.bz2 rneovim-b8363283faac5e02cd9961119da7accb3d35d420.zip |
Merge #7679 'startup: treat stdin as text instead of commands'
Diffstat (limited to 'test/functional/helpers.lua')
-rw-r--r-- | test/functional/helpers.lua | 8 |
1 files changed, 8 insertions, 0 deletions
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 |