aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/file_search.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/file_search.c')
-rw-r--r--src/nvim/file_search.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/file_search.c b/src/nvim/file_search.c
index bbc6e53aa8..e87e0853f3 100644
--- a/src/nvim/file_search.c
+++ b/src/nvim/file_search.c
@@ -825,7 +825,7 @@ char_u *vim_findfile(void *search_ctx_arg)
for (;;) {
// if file exists and we didn't already find it
if ((path_with_url((char *)file_path)
- || (os_path_exists(file_path)
+ || (os_path_exists((char *)file_path)
&& (search_ctx->ffsc_find_what == FINDFILE_BOTH
|| ((search_ctx->ffsc_find_what == FINDFILE_DIR)
== os_isdir((char *)file_path)))))
@@ -1473,7 +1473,7 @@ char_u *find_file_in_path_option(char_u *ptr, size_t len, int options, int first
buf = (char *)suffixes;
for (;;) {
if (
- (os_path_exists((char_u *)NameBuff)
+ (os_path_exists(NameBuff)
&& (find_what == FINDFILE_BOTH
|| ((find_what == FINDFILE_DIR)
== os_isdir(NameBuff))))) {