mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 05:28:33 +00:00
refactor(messages): fold msg_attr into msg
problem: there are too many different functions in message.c solution: fold some of the functions into themselves
This commit is contained in:
@@ -352,8 +352,7 @@ static int check_mtime(buf_T *buf, FileInfo *file_info)
|
||||
msg_scroll = true; // Don't overwrite messages here.
|
||||
msg_silent = 0; // Must give this prompt.
|
||||
// Don't use emsg() here, don't want to flush the buffers.
|
||||
msg_attr(_("WARNING: The file has been changed since reading it!!!"),
|
||||
HL_ATTR(HLF_E));
|
||||
msg(_("WARNING: The file has been changed since reading it!!!"), HL_ATTR(HLF_E));
|
||||
if (ask_yesno(_("Do you really want to write to it"), true) == 'n') {
|
||||
return FAIL;
|
||||
}
|
||||
@@ -1721,7 +1720,7 @@ restore_backup:
|
||||
// This may take a while, if we were interrupted let the user
|
||||
// know we got the message.
|
||||
if (got_int) {
|
||||
msg(_(e_interr));
|
||||
msg(_(e_interr), 0);
|
||||
ui_flush();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user