diff options
author | Gregory Anders <8965202+gpanders@users.noreply.github.com> | 2023-12-07 13:02:02 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-07 13:02:02 -0800 |
commit | 75aaec1b60e81742c01156e6884e6df977a1803e (patch) | |
tree | 0c277084471e60006799bec4053e66789b636e02 /test/functional/terminal/helpers.lua | |
parent | 9ae7d36ff5ebaf75597b442e10890bd77df01fbe (diff) | |
parent | 8957df4f22af508fa44b9f8ada7ee4636d972bd3 (diff) | |
download | rneovim-75aaec1b60e81742c01156e6884e6df977a1803e.tar.gz rneovim-75aaec1b60e81742c01156e6884e6df977a1803e.tar.bz2 rneovim-75aaec1b60e81742c01156e6884e6df977a1803e.zip |
Merge pull request #26456 from gpanders/ignore-vim-runtime
fix(terminal): ignore $VIM and $VIMRUNTIME in pty jobs
Diffstat (limited to 'test/functional/terminal/helpers.lua')
-rw-r--r-- | test/functional/terminal/helpers.lua | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/functional/terminal/helpers.lua b/test/functional/terminal/helpers.lua index 78c9218679..9566079389 100644 --- a/test/functional/terminal/helpers.lua +++ b/test/functional/terminal/helpers.lua @@ -127,7 +127,13 @@ end local function setup_child_nvim(args, opts) opts = opts or {} local argv = { nvim_prog, unpack(args) } - return screen_setup(0, argv, opts.cols, opts.env) + + local env = opts.env or {} + if not env.VIMRUNTIME then + env.VIMRUNTIME = os.getenv('VIMRUNTIME') + end + + return screen_setup(0, argv, opts.cols, env) end return { |