aboutsummaryrefslogtreecommitdiff
path: root/test/functional/core/startup_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2021-09-21 08:47:46 -0700
committerGitHub <noreply@github.com>2021-09-21 08:47:46 -0700
commitc76cddf3e078a47ff733203629a07d6734435a6f (patch)
treeb091f84bd30be6fe82a010221cd061f48f6b1421 /test/functional/core/startup_spec.lua
parentc2089930268d24efa531ac98664adf55796385c5 (diff)
downloadrneovim-c76cddf3e078a47ff733203629a07d6734435a6f.tar.gz
rneovim-c76cddf3e078a47ff733203629a07d6734435a6f.tar.bz2
rneovim-c76cddf3e078a47ff733203629a07d6734435a6f.zip
fix(startup): init.lua: set $MYVIMRC to absolute path #15748
- main.c: remove os_setenv("MYVIMRC",…), it is already done by do_source(). - This also sets $MYVIMRC to a full (absolute) path. - code cleanup.
Diffstat (limited to 'test/functional/core/startup_spec.lua')
-rw-r--r--test/functional/core/startup_spec.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/core/startup_spec.lua b/test/functional/core/startup_spec.lua
index f057420dde..ff93f88a2d 100644
--- a/test/functional/core/startup_spec.lua
+++ b/test/functional/core/startup_spec.lua
@@ -472,7 +472,7 @@ describe('user config init', function()
clear{ args_rm={'-u' }, env=xenv }
eq(1, eval('g:lua_rc'))
- eq(init_lua_path, eval('$MYVIMRC'))
+ eq(funcs.fnamemodify(init_lua_path, ':p'), eval('$MYVIMRC'))
end)
describe 'with explicitly provided config'(function()