mirror of
https://github.com/neovim/neovim.git
synced 2025-09-17 00:38:17 +00:00
Linting.
This commit is contained in:
@@ -576,10 +576,11 @@ int mch_expand_wildcards(int num_pat, char_u **pat, int *num_file,
|
||||
if ((dir && !(flags & EW_DIR)) || (!dir && !(flags & EW_FILE)))
|
||||
continue;
|
||||
|
||||
/* Skip files that are not executable if we check for that. */
|
||||
// Skip files that are not executable if we check for that.
|
||||
if (!dir && (flags & EW_EXEC)
|
||||
&& !os_can_exe((*file)[i], NULL, !(flags & EW_SHELLCMD)))
|
||||
&& !os_can_exe((*file)[i], NULL, !(flags & EW_SHELLCMD))) {
|
||||
continue;
|
||||
}
|
||||
|
||||
p = xmalloc(STRLEN((*file)[i]) + 1 + dir);
|
||||
STRCPY(p, (*file)[i]);
|
||||
|
Reference in New Issue
Block a user