diff options
Diffstat (limited to 'src/nvim/file_search.c')
-rw-r--r-- | src/nvim/file_search.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nvim/file_search.c b/src/nvim/file_search.c index c41916d40a..1434ba415b 100644 --- a/src/nvim/file_search.c +++ b/src/nvim/file_search.c @@ -1413,8 +1413,7 @@ char_u *find_file_in_path_option(char_u *ptr, size_t len, int options, int first // When the file doesn't exist, try adding parts of 'suffixesadd'. buf = (char *)suffixes; for (;;) { - if ( - (os_path_exists(NameBuff) + if ((os_path_exists(NameBuff) && (find_what == FINDFILE_BOTH || ((find_what == FINDFILE_DIR) == os_isdir(NameBuff))))) { |