diff options
author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2022-04-30 16:48:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-30 16:48:00 +0200 |
commit | 3c23100130725bb79c04e933c505bbeda96fb3bb (patch) | |
tree | 6184115b0f11cec968966455ce1d3b2e81873f1b /src/nvim/ex_cmds.c | |
parent | fcdf24d8be4abada88355538a23d771e41c77dd4 (diff) | |
download | rneovim-3c23100130725bb79c04e933c505bbeda96fb3bb.tar.gz rneovim-3c23100130725bb79c04e933c505bbeda96fb3bb.tar.bz2 rneovim-3c23100130725bb79c04e933c505bbeda96fb3bb.zip |
refactor: replace char_u variables and functions with char (#18288)
Work on https://github.com/neovim/neovim/issues/459
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r-- | src/nvim/ex_cmds.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c index 918510bbd0..7be8bbcaac 100644 --- a/src/nvim/ex_cmds.c +++ b/src/nvim/ex_cmds.c @@ -1991,7 +1991,7 @@ int check_overwrite(exarg_T *eap, buf_T *buf, char_u *fname, char_u *ffname, int if (p_confirm || cmdmod.confirm) { char_u buff[DIALOG_MSG_SIZE]; - dialog_msg(buff, _("Overwrite existing file \"%s\"?"), fname); + dialog_msg((char *)buff, _("Overwrite existing file \"%s\"?"), (char *)fname); if (vim_dialog_yesno(VIM_QUESTION, NULL, buff, 2) != VIM_YES) { return FAIL; } @@ -2027,9 +2027,9 @@ int check_overwrite(exarg_T *eap, buf_T *buf, char_u *fname, char_u *ffname, int if (p_confirm || cmdmod.confirm) { char_u buff[DIALOG_MSG_SIZE]; - dialog_msg(buff, + dialog_msg((char *)buff, _("Swap file \"%s\" exists, overwrite anyway?"), - swapname); + (char *)swapname); if (vim_dialog_yesno(VIM_QUESTION, NULL, buff, 2) != VIM_YES) { xfree(swapname); @@ -2150,14 +2150,14 @@ static int check_readonly(int *forceit, buf_T *buf) char_u buff[DIALOG_MSG_SIZE]; if (buf->b_p_ro) { - dialog_msg(buff, + dialog_msg((char *)buff, _("'readonly' option is set for \"%s\".\nDo you wish to write anyway?"), - buf->b_fname); + (char *)buf->b_fname); } else { - dialog_msg(buff, - _( - "File permissions of \"%s\" are read-only.\nIt may still be possible to write it.\nDo you wish to try?"), - buf->b_fname); + dialog_msg((char *)buff, + _("File permissions of \"%s\" are read-only.\nIt may still be possible to " + "write it.\nDo you wish to try?"), + (char *)buf->b_fname); } if (vim_dialog_yesno(VIM_QUESTION, NULL, buff, 2) == VIM_YES) { @@ -2859,7 +2859,7 @@ int do_ecmd(int fnum, char_u *ffname, char_u *sfname, exarg_T *eap, linenr_T new curbuf->b_last_used = time(NULL); if (command != NULL) { - do_cmdline(command, NULL, NULL, DOCMD_VERBOSE); + do_cmdline((char *)command, NULL, NULL, DOCMD_VERBOSE); } if (curbuf->b_kmap_state & KEYMAP_INIT) { @@ -4527,9 +4527,9 @@ static void global_exe_one(char_u *const cmd, const linenr_T lnum) curwin->w_cursor.lnum = lnum; curwin->w_cursor.col = 0; if (*cmd == NUL || *cmd == '\n') { - do_cmdline((char_u *)"p", NULL, NULL, DOCMD_NOWAIT); + do_cmdline("p", NULL, NULL, DOCMD_NOWAIT); } else { - do_cmdline(cmd, NULL, NULL, DOCMD_NOWAIT); + do_cmdline((char *)cmd, NULL, NULL, DOCMD_NOWAIT); } } |