Mercurial > vim
comparison src/os_msdos.c @ 9:4102fb4ea781 v7.0002
updated for version 7.0002
author | vimboss |
---|---|
date | Sun, 20 Jun 2004 12:51:53 +0000 |
parents | 3fc0f57ecb91 |
children | 125e80798a85 |
comparison
equal
deleted
inserted
replaced
8:7edf9b6e4c36 | 9:4102fb4ea781 |
---|---|
2985 */ | 2985 */ |
2986 int | 2986 int |
2987 mch_can_exe(name) | 2987 mch_can_exe(name) |
2988 char_u *name; | 2988 char_u *name; |
2989 { | 2989 { |
2990 return (searchpath(name) != NULL); | 2990 char *p; |
2991 | |
2992 p = searchpath(name); | |
2993 if (p == NULL || mch_isdir(p)) | |
2994 return FALSE; | |
2995 return TRUE; | |
2991 } | 2996 } |
2992 #endif | 2997 #endif |
2993 | 2998 |
2994 /* | 2999 /* |
2995 * Check what "name" is: | 3000 * Check what "name" is: |