summaryrefslogtreecommitdiff
path: root/src/os_msdos.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2014-04-01 21:00:59 +0200
committerBram Moolenaar <Bram@vim.org>2014-04-01 21:00:59 +0200
commitc7f025536e9e5b7b95b55d09094febb627395d05 (patch)
tree18ecd63ab3352c3089125ad435d5aa2f6d493655 /src/os_msdos.c
parenta1706c958e69086f5c9eb7d79779ed839441ff60 (diff)
downloadvim-git-c7f025536e9e5b7b95b55d09094febb627395d05.tar.gz
updated for version 7.4.235v7.4.235
Problem: It is not easy to get the full path of a command. Solution: Add the exepath() function.
Diffstat (limited to 'src/os_msdos.c')
-rw-r--r--src/os_msdos.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/os_msdos.c b/src/os_msdos.c
index 10c70b2e3..f24a6f8ea 100644
--- a/src/os_msdos.c
+++ b/src/os_msdos.c
@@ -2945,14 +2945,17 @@ mch_isdir(char_u *name)
* Return -1 if unknown.
*/
int
-mch_can_exe(name)
+mch_can_exe(name, path)
char_u *name;
+ char_u **path;
{
char *p;
p = searchpath(name);
if (p == NULL || mch_isdir(p))
return FALSE;
+ if (path != NULL)
+ *path = vim_strsave(p);
return TRUE;
}