mirror of
https://github.com/neovim/neovim.git
synced 2025-09-14 23:38:17 +00:00
Linting.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user