1
0
forked from aniani/vim

updated for version 7.4.235

Problem:    It is not easy to get the full path of a command.
Solution:   Add the exepath() function.
This commit is contained in:
Bram Moolenaar
2014-04-01 21:00:59 +02:00
parent a1706c958e
commit c7f025536e
13 changed files with 82 additions and 20 deletions

View File

@@ -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;
}