diff src/os_unix.c @ 11054:576238eda5a4 v8.0.0416

patch 8.0.0416: setting v:progpath is not quite right commit https://github.com/vim/vim/commit/436631969716e056feca47480976100b70283370 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Mar 5 14:29:12 2017 +0100 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)
author Christian Brabandt <cb@256bit.org>
date Sun, 05 Mar 2017 14:30:04 +0100
parents fb2bcfa6a8de
children 3b36da20ad73
line wrap: on
line diff
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -3103,7 +3103,7 @@ mch_can_exe(char_u *name, char_u **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,
 	{
 	    if (path != NULL)
 	    {
-		if (buf[0] == '.')
+		if (buf[0] != '/')
 		    *path = FullName_save(buf, TRUE);
 		else
 		    *path = vim_strsave(buf);