forked from aniani/vim
updated for version 7.4.674
Problem: Missing changes in one file. Solution: Also change the win32 file.
This commit is contained in:
@@ -3378,10 +3378,11 @@ mch_writable(char_u *name)
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Return 1 if "name" can be executed, 0 if not.
|
* Return 1 if "name" can be executed, 0 if not.
|
||||||
|
* If "use_path" is FALSE only check if "name" is executable.
|
||||||
* Return -1 if unknown.
|
* Return -1 if unknown.
|
||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
mch_can_exe(char_u *name, char_u **path)
|
mch_can_exe(char_u *name, char_u **path, int use_path)
|
||||||
{
|
{
|
||||||
char_u buf[_MAX_PATH];
|
char_u buf[_MAX_PATH];
|
||||||
int len = (int)STRLEN(name);
|
int len = (int)STRLEN(name);
|
||||||
@@ -3389,6 +3390,11 @@ mch_can_exe(char_u *name, char_u **path)
|
|||||||
|
|
||||||
if (len >= _MAX_PATH) /* safety check */
|
if (len >= _MAX_PATH) /* safety check */
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
if (!use_path)
|
||||||
|
{
|
||||||
|
/* TODO: check if file is really executable. */
|
||||||
|
return mch_getperm(name) != -1 && !mch_isdir(name);
|
||||||
|
}
|
||||||
|
|
||||||
/* If there already is an extension try using the name directly. Also do
|
/* If there already is an extension try using the name directly. Also do
|
||||||
* this with a Unix-shell like 'shell'. */
|
* this with a Unix-shell like 'shell'. */
|
||||||
|
@@ -741,6 +741,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
674,
|
||||||
/**/
|
/**/
|
||||||
673,
|
673,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user