aboutsummaryrefslogtreecommitdiff
path: root/test/functional/options/defaults_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-02-02 13:16:15 +0100
committerJustin M. Keyes <justinkz@gmail.com>2017-02-04 11:07:49 +0100
commit224f99b85d311ebd31451db13b66e4a3c7e51938 (patch)
treede2bb4bc8f06e09ede603ae535697384133a4ed5 /test/functional/options/defaults_spec.lua
parent7d58aba80c6d81a9af40f54e566c0cdcea2de3e3 (diff)
downloadrneovim-224f99b85d311ebd31451db13b66e4a3c7e51938.tar.gz
rneovim-224f99b85d311ebd31451db13b66e4a3c7e51938.tar.bz2
rneovim-224f99b85d311ebd31451db13b66e4a3c7e51938.zip
win: Append process dir to $PATH
This allows executables to be found by :!, system(), and executable() if they live next to ("sibling" to) nvim.exe. This is what gvim on Windows does, and also matches the behavior of Win32 SearchPath(). https://github.com/vim/vim/blob/c4a249a736d40ec54794827ef95804c225d0e38f/src/os_win32.c#L354-L370
Diffstat (limited to 'test/functional/options/defaults_spec.lua')
-rw-r--r--test/functional/options/defaults_spec.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/functional/options/defaults_spec.lua b/test/functional/options/defaults_spec.lua
index caeca5e4e2..f3328886b5 100644
--- a/test/functional/options/defaults_spec.lua
+++ b/test/functional/options/defaults_spec.lua
@@ -96,6 +96,10 @@ describe('startup defaults', function()
eq(meths.get_option('runtimepath'), meths.get_option('packpath'))
end)
end)
+
+ it('v:progpath is set to the absolute path', function()
+ eq(eval("fnamemodify(v:progpath, ':p')"), eval('v:progpath'))
+ end)
end)
describe('XDG-based defaults', function()