This commit is contained in:
KillTheMule
2016-05-01 21:06:47 +02:00
parent 00c35ab3b4
commit 3e1ca9a2db
4 changed files with 17 additions and 16 deletions

View File

@@ -1321,8 +1321,9 @@ void addfile(
// If the file isn't executable, may not add it. Do accept directories.
// When invoked from expand_shellcmd() do not use $PATH.
if (!isdir && (flags & EW_EXEC)
&& !os_can_exe(f, NULL, !(flags & EW_SHELLCMD)))
&& !os_can_exe(f, NULL, !(flags & EW_SHELLCMD))) {
return;
}
char_u *p = xmalloc(STRLEN(f) + 1 + isdir);