summaryrefslogtreecommitdiff
path: root/src/os_win32.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-03-05 15:19:32 +0100
committerBram Moolenaar <Bram@vim.org>2017-03-05 15:19:32 +0100
commit066029ef92b45dc4bd21a353b1fac25841062c26 (patch)
treecc015c811077be548eb1bb6be0bbf0da28f4d154 /src/os_win32.c
parenta382868115e8f8e44c6a85bb9587f8eb31fa0033 (diff)
downloadvim-git-066029ef92b45dc4bd21a353b1fac25841062c26.tar.gz
patch 8.0.0419: test for v:progpath fails on MS-Windowsv8.0.0419
Problem: Test for v:progpath fails on MS-Windows. Solution: Expand to full path. Also add ".exe" when the path is an absolute path.
Diffstat (limited to 'src/os_win32.c')
-rw-r--r--src/os_win32.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/os_win32.c b/src/os_win32.c
index dd3e6def5..7081e037d 100644
--- a/src/os_win32.c
+++ b/src/os_win32.c
@@ -1921,7 +1921,12 @@ executable_exists(char *name, char_u **path, int use_path)
if (mch_getperm(name) != -1 && !mch_isdir(name))
{
if (path != NULL)
- *path = vim_strsave((char_u *)name);
+ {
+ if (mch_isFullName(name))
+ *path = vim_strsave((char_u *)name);
+ else
+ *path = FullName_save((char_u *)name, FALSE);
+ }
return TRUE;
}
return FALSE;