diff options
author | Bram Moolenaar <Bram@vim.org> | 2014-04-01 21:00:59 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2014-04-01 21:00:59 +0200 |
commit | c7f025536e9e5b7b95b55d09094febb627395d05 (patch) | |
tree | 18ecd63ab3352c3089125ad435d5aa2f6d493655 /src/os_msdos.c | |
parent | a1706c958e69086f5c9eb7d79779ed839441ff60 (diff) | |
download | vim-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.c | 5 |
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; } |