diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2021-09-21 08:47:46 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-21 08:47:46 -0700 |
commit | c76cddf3e078a47ff733203629a07d6734435a6f (patch) | |
tree | b091f84bd30be6fe82a010221cd061f48f6b1421 /test/functional/core/startup_spec.lua | |
parent | c2089930268d24efa531ac98664adf55796385c5 (diff) | |
download | rneovim-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.lua | 2 |
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() |