From 224f99b85d311ebd31451db13b66e4a3c7e51938 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Thu, 2 Feb 2017 13:16:15 +0100 Subject: 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 --- test/functional/options/defaults_spec.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/functional/options') 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() -- cgit