diff options
Diffstat (limited to 'src/nvim/os_unix.c')
| -rw-r--r-- | src/nvim/os_unix.c | 7 | 
1 files changed, 4 insertions, 3 deletions
| diff --git a/src/nvim/os_unix.c b/src/nvim/os_unix.c index 2ed0c2c856..def7e3b0e5 100644 --- a/src/nvim/os_unix.c +++ b/src/nvim/os_unix.c @@ -566,10 +566,11 @@ int mch_expand_wildcards(int num_pat, char_u **pat, int *num_file,    /*     * Move the file names to allocated memory.     */ -  for (j = 0, i = 0; i < *num_file; ++i) { -    /* Require the files to exist.	Helps when using /bin/sh */ -    if (!(flags & EW_NOTFOUND) && !os_file_exists((*file)[i])) +  for (j = 0, i = 0; i < *num_file; i++) { +    // Require the files to exist. Helps when using /bin/sh +    if (!(flags & EW_NOTFOUND) && !os_path_exists((*file)[i])) {        continue; +    }      /* check if this entry should be included */      dir = (os_isdir((*file)[i])); | 
