aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/file_search.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-08-31 20:50:43 +0200
committerGitHub <noreply@github.com>2022-08-31 20:50:43 +0200
commitf078a3453ae479e4d6f88f874e8d282d63c798a3 (patch)
tree60997bc19af85f1292cb0ca7e66e797737006dee /src/nvim/file_search.c
parent933c80e8f9d7ff4ab634c14d370440702c7c8ed7 (diff)
parentfb1edb2f5728d74ae811c6ab32395598cea5609b (diff)
downloadrneovim-f078a3453ae479e4d6f88f874e8d282d63c798a3.tar.gz
rneovim-f078a3453ae479e4d6f88f874e8d282d63c798a3.tar.bz2
rneovim-f078a3453ae479e4d6f88f874e8d282d63c798a3.zip
Merge pull request #20007 from dundargoc/refactor/char_u/5
refactor: replace char_u with char 5
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))))) {