diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-03-05 14:29:12 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-03-05 14:29:12 +0100 |
commit | 436631969716e056feca47480976100b70283370 (patch) | |
tree | 6503b38cda2519810d101520fd259cf72cf325cc /src/os_unix.c | |
parent | 0f9ea22c115084a982c86214ef41200e0dfc1ea6 (diff) |
patch 8.0.0416: setting v:progpath is not quite rightv8.0.0416
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)
Diffstat (limited to 'src/os_unix.c')
-rw-r--r-- | src/os_unix.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/os_unix.c b/src/os_unix.c index 6220044b68..6c5955b84f 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -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); |