1
0
forked from aniani/vim

patch 8.0.0419: test for v:progpath fails on MS-Windows

Problem:    Test for v:progpath fails on MS-Windows.
Solution:   Expand to full path.  Also add ".exe" when the path is an absolute
            path.
This commit is contained in:
Bram Moolenaar
2017-03-05 15:19:32 +01:00
parent a382868115
commit 066029ef92
3 changed files with 21 additions and 15 deletions

View File

@@ -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;