mirror of
https://github.com/neovim/neovim.git
synced 2025-10-03 16:36:30 +00:00
refactor: replace char_u with char (#21901)
refactor: replace char_u with char Work on https://github.com/neovim/neovim/issues/459
This commit is contained in:
@@ -1818,7 +1818,7 @@ int check_overwrite(exarg_T *eap, buf_T *buf, char *fname, char *ffname, int oth
|
||||
if (p_confirm || (cmdmod.cmod_flags & CMOD_CONFIRM)) {
|
||||
char buff[DIALOG_MSG_SIZE];
|
||||
|
||||
dialog_msg((char *)buff, _("Overwrite existing file \"%s\"?"), fname);
|
||||
dialog_msg(buff, _("Overwrite existing file \"%s\"?"), fname);
|
||||
if (vim_dialog_yesno(VIM_QUESTION, NULL, buff, 2) != VIM_YES) {
|
||||
return FAIL;
|
||||
}
|
||||
@@ -1854,7 +1854,7 @@ int check_overwrite(exarg_T *eap, buf_T *buf, char *fname, char *ffname, int oth
|
||||
if (p_confirm || (cmdmod.cmod_flags & CMOD_CONFIRM)) {
|
||||
char buff[DIALOG_MSG_SIZE];
|
||||
|
||||
dialog_msg((char *)buff,
|
||||
dialog_msg(buff,
|
||||
_("Swap file \"%s\" exists, overwrite anyway?"),
|
||||
swapname);
|
||||
if (vim_dialog_yesno(VIM_QUESTION, NULL, buff, 2)
|
||||
@@ -1974,11 +1974,11 @@ static int check_readonly(int *forceit, buf_T *buf)
|
||||
char buff[DIALOG_MSG_SIZE];
|
||||
|
||||
if (buf->b_p_ro) {
|
||||
dialog_msg((char *)buff,
|
||||
dialog_msg(buff,
|
||||
_("'readonly' option is set for \"%s\".\nDo you wish to write anyway?"),
|
||||
buf->b_fname);
|
||||
} else {
|
||||
dialog_msg((char *)buff,
|
||||
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);
|
||||
|
Reference in New Issue
Block a user