aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/undo.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2023-09-27 23:49:47 +0200
committerGitHub <noreply@github.com>2023-09-27 23:49:47 +0200
commite46f5aab895f333d23d6adf490e13177c8d3c1d8 (patch)
treee0bf5224a8db9e9cb4b60347cfd4ac7f8faacbaf /src/nvim/undo.c
parent86b7d8a9f54d572e6866d6a24476d2369a288f79 (diff)
parent448d4837be7f7bd60ac0b5a3100c0217ac48a495 (diff)
downloadrneovim-e46f5aab895f333d23d6adf490e13177c8d3c1d8.tar.gz
rneovim-e46f5aab895f333d23d6adf490e13177c8d3c1d8.tar.bz2
rneovim-e46f5aab895f333d23d6adf490e13177c8d3c1d8.zip
Merge pull request #25396 from bfredl/no_attr
refactor(messages): fold msg() functions with and without attr
Diffstat (limited to 'src/nvim/undo.c')
-rw-r--r--src/nvim/undo.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/nvim/undo.c b/src/nvim/undo.c
index 1194eeca35..598bfbc134 100644
--- a/src/nvim/undo.c
+++ b/src/nvim/undo.c
@@ -1883,7 +1883,7 @@ static void u_doit(int startcount, bool quiet, bool do_buf_event)
curbuf->b_u_curhead = curbuf->b_u_oldhead;
beep_flush();
if (count == startcount - 1) {
- msg(_("Already at oldest change"));
+ msg(_("Already at oldest change"), 0);
return;
}
break;
@@ -1894,7 +1894,7 @@ static void u_doit(int startcount, bool quiet, bool do_buf_event)
if (curbuf->b_u_curhead == NULL || get_undolevel(curbuf) <= 0) {
beep_flush(); // nothing to redo
if (count == startcount - 1) {
- msg(_("Already at newest change"));
+ msg(_("Already at newest change"), 0);
return;
}
break;
@@ -2118,9 +2118,9 @@ void undo_time(long step, bool sec, bool file, bool absolute)
if (closest == closest_start) {
if (step < 0) {
- msg(_("Already at oldest change"));
+ msg(_("Already at oldest change"), 0);
} else {
- msg(_("Already at newest change"));
+ msg(_("Already at newest change"), 0);
}
return;
}
@@ -2719,7 +2719,7 @@ void ex_undolist(exarg_T *eap)
}
if (GA_EMPTY(&ga)) {
- msg(_("Nothing to undo"));
+ msg(_("Nothing to undo"), 0);
} else {
sort_strings(ga.ga_data, ga.ga_len);