diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-03-05 15:19:32 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-03-05 15:19:32 +0100 |
commit | 066029ef92b45dc4bd21a353b1fac25841062c26 (patch) | |
tree | cc015c811077be548eb1bb6be0bbf0da28f4d154 /src/os_win32.c | |
parent | a382868115e8f8e44c6a85bb9587f8eb31fa0033 (diff) | |
download | vim-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.c | 7 |
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; |