diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-05-16 14:24:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-16 14:24:29 +0200 |
commit | b9b5577d6d8e07d1e39020c8fc05f817f2e81c66 (patch) | |
tree | 0d4b5f8b4db1ad7b4cd6d93c89d149e9e2d84570 /src/nvim/file_search.c | |
parent | 14d653b421d3ee4e0d641e45e67dafe43809e502 (diff) | |
parent | f0148de7907ec297647816d51c79745be729439e (diff) | |
download | rneovim-b9b5577d6d8e07d1e39020c8fc05f817f2e81c66.tar.gz rneovim-b9b5577d6d8e07d1e39020c8fc05f817f2e81c66.tar.bz2 rneovim-b9b5577d6d8e07d1e39020c8fc05f817f2e81c66.zip |
Merge pull request #18578 from dundargoc/refactor/remove-char_u
refactor: remove char_u
Diffstat (limited to 'src/nvim/file_search.c')
-rw-r--r-- | src/nvim/file_search.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/file_search.c b/src/nvim/file_search.c index 02db5ded75..47e20d58a3 100644 --- a/src/nvim/file_search.c +++ b/src/nvim/file_search.c @@ -371,7 +371,7 @@ void *vim_findfile_init(char_u *path, char_u *filename, char_u *stopdirs, int le ptr = xrealloc(search_ctx->ffsc_stopdirs_v, (dircount + 1) * sizeof(char_u *)); search_ctx->ffsc_stopdirs_v = ptr; - walker = vim_strchr(walker, ';'); + walker = (char_u *)vim_strchr((char *)walker, ';'); if (walker) { assert(walker - helper >= 0); search_ctx->ffsc_stopdirs_v[dircount - 1] = @@ -396,7 +396,7 @@ void *vim_findfile_init(char_u *path, char_u *filename, char_u *stopdirs, int le * -fix path * -wildcard_stuff (might be NULL) */ - wc_part = vim_strchr(path, '*'); + wc_part = (char_u *)vim_strchr((char *)path, '*'); if (wc_part != NULL) { int64_t llevel; int len; @@ -1643,7 +1643,7 @@ void do_autocmd_dirchanged(char *new_dir, CdScope scope, CdCause cause, bool pre abort(); } - apply_autocmds(event, (char_u *)buf, (char_u *)new_dir, false, curbuf); + apply_autocmds(event, buf, new_dir, false, curbuf); restore_v_event(dict, &save_v_event); |