aboutsummaryrefslogtreecommitdiff
path: root/test/functional/core/startup_spec.lua
diff options
context:
space:
mode:
authorGregory Anders <8965202+gpanders@users.noreply.github.com>2023-12-07 13:02:02 -0800
committerGitHub <noreply@github.com>2023-12-07 13:02:02 -0800
commit75aaec1b60e81742c01156e6884e6df977a1803e (patch)
tree0c277084471e60006799bec4053e66789b636e02 /test/functional/core/startup_spec.lua
parent9ae7d36ff5ebaf75597b442e10890bd77df01fbe (diff)
parent8957df4f22af508fa44b9f8ada7ee4636d972bd3 (diff)
downloadrneovim-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/core/startup_spec.lua')
-rw-r--r--test/functional/core/startup_spec.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/functional/core/startup_spec.lua b/test/functional/core/startup_spec.lua
index 94ec3d4907..1460870774 100644
--- a/test/functional/core/startup_spec.lua
+++ b/test/functional/core/startup_spec.lua
@@ -866,7 +866,11 @@ describe('user config init', function()
local screen = Screen.new(50, 8)
screen:attach()
- funcs.termopen({nvim_prog})
+ funcs.termopen({nvim_prog}, {
+ env = {
+ VIMRUNTIME = os.getenv('VIMRUNTIME'),
+ },
+ })
screen:expect({ any = pesc('[i]gnore, (v)iew, (d)eny, (a)llow:') })
-- `i` to enter Terminal mode, `a` to allow
feed('ia')