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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user