diff options
author | Dundar Goc <gocdundar@gmail.com> | 2022-04-30 20:28:04 +0200 |
---|---|---|
committer | Dundar Goc <gocdundar@gmail.com> | 2022-04-30 23:39:17 +0200 |
commit | af782a630633ffe0cb082bda974b24d4f577313e (patch) | |
tree | 7a65343a9d6cdd926aa46db55dd263c2d9eda793 /src/nvim/ex_cmds2.c | |
parent | 0344736aa698dc205f8f9f80609b7033308d39ca (diff) | |
download | rneovim-af782a630633ffe0cb082bda974b24d4f577313e.tar.gz rneovim-af782a630633ffe0cb082bda974b24d4f577313e.tar.bz2 rneovim-af782a630633ffe0cb082bda974b24d4f577313e.zip |
refactor: replace char_u variables and functions with char
Work on https://github.com/neovim/neovim/issues/459
Diffstat (limited to 'src/nvim/ex_cmds2.c')
-rw-r--r-- | src/nvim/ex_cmds2.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/nvim/ex_cmds2.c b/src/nvim/ex_cmds2.c index 38007e5ad4..c439b29cf6 100644 --- a/src/nvim/ex_cmds2.c +++ b/src/nvim/ex_cmds2.c @@ -565,8 +565,8 @@ void dialog_changed(buf_T *buf, bool checkall) if (buf->b_fname != NULL && check_overwrite(&ea, buf, - buf->b_fname, - buf->b_ffname, + (char *)buf->b_fname, + (char *)buf->b_ffname, false) == OK) { // didn't hit Cancel (void)buf_write_all(buf, false); @@ -583,8 +583,8 @@ void dialog_changed(buf_T *buf, bool checkall) set_bufref(&bufref, buf2); if (buf2->b_fname != NULL - && check_overwrite(&ea, buf2, buf2->b_fname, - buf2->b_ffname, false) == OK) { + && check_overwrite(&ea, buf2, (char *)buf2->b_fname, + (char *)buf2->b_ffname, false) == OK) { // didn't hit Cancel (void)buf_write_all(buf2, false); } @@ -1166,7 +1166,7 @@ void do_argfile(exarg_T *eap, int argn) // Edit the file; always use the last known line number. // When it fails (e.g. Abort for already edited file) restore the // argument index. - if (do_ecmd(0, alist_name(&ARGLIST[curwin->w_arg_idx]), NULL, + if (do_ecmd(0, (char *)alist_name(&ARGLIST[curwin->w_arg_idx]), NULL, eap, ECMD_LAST, (buf_hide(curwin->w_buffer) ? ECMD_HIDE : 0) + (eap->forceit ? ECMD_FORCEIT : 0), curwin) == FAIL) { |