0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.0.0416: setting v:progpath is not quite right

Problem:    Setting v:progpath is not quite right.
Solution:   On MS-Windows add the extension. On Unix use the full path for a
            relative directory. (partly by James McCoy, closes #1531)
This commit is contained in:
Bram Moolenaar
2017-03-05 14:29:12 +01:00
parent 0f9ea22c11
commit 4366319697
4 changed files with 42 additions and 20 deletions

View File

@@ -3103,7 +3103,7 @@ mch_can_exe(char_u *name, char_u **path, int use_path)
{
if (path != NULL)
{
if (name[0] == '.')
if (name[0] != '/')
*path = FullName_save(name, TRUE);
else
*path = vim_strsave(name);
@@ -3142,7 +3142,7 @@ mch_can_exe(char_u *name, char_u **path, int use_path)
{
if (path != NULL)
{
if (buf[0] == '.')
if (buf[0] != '/')
*path = FullName_save(buf, TRUE);
else
*path = vim_strsave(buf);