aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/bufwrite.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2023-09-27 22:21:17 +0200
committerbfredl <bjorn.linse@gmail.com>2023-09-27 22:50:49 +0200
commitb85f1dafc7c0a19704135617454f1c66f41202c1 (patch)
treece478ebdce2efaac4ff9f16e86bce556e2ef1e7d /src/nvim/bufwrite.c
parentf91cd31d7d9d70006e0000592637d5d997eab52c (diff)
downloadrneovim-b85f1dafc7c0a19704135617454f1c66f41202c1.tar.gz
rneovim-b85f1dafc7c0a19704135617454f1c66f41202c1.tar.bz2
rneovim-b85f1dafc7c0a19704135617454f1c66f41202c1.zip
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
Diffstat (limited to 'src/nvim/bufwrite.c')
-rw-r--r--src/nvim/bufwrite.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/nvim/bufwrite.c b/src/nvim/bufwrite.c
index 2f13586dcc..f2f6833db5 100644
--- a/src/nvim/bufwrite.c
+++ b/src/nvim/bufwrite.c
@@ -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();
}