aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_cmds.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2023-09-29 16:10:54 +0200
committerbfredl <bjorn.linse@gmail.com>2023-09-29 16:36:04 +0200
commitbc13bc154aa574e0bb58a50f2e0ca4570efa57c3 (patch)
tree86c6a0d607ec80d404c10bdbb377ad3fc8ce2ee4 /src/nvim/ex_cmds.c
parent8e11c18d4962c5367a0549bdb2288323545852b6 (diff)
downloadrneovim-bc13bc154aa574e0bb58a50f2e0ca4570efa57c3.tar.gz
rneovim-bc13bc154aa574e0bb58a50f2e0ca4570efa57c3.tar.bz2
rneovim-bc13bc154aa574e0bb58a50f2e0ca4570efa57c3.zip
refactor(message): smsg_attr -> smsg
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r--src/nvim/ex_cmds.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c
index bc82226d95..e9d8947bd3 100644
--- a/src/nvim/ex_cmds.c
+++ b/src/nvim/ex_cmds.c
@@ -836,8 +836,8 @@ int do_move(linenr_T line1, linenr_T line2, linenr_T dest)
ml_delete(line1 + extra, true);
}
if (!global_busy && num_lines > p_report) {
- smsg(NGETTEXT("%" PRId64 " line moved",
- "%" PRId64 " lines moved", num_lines),
+ smsg(0, NGETTEXT("%" PRId64 " line moved",
+ "%" PRId64 " lines moved", num_lines),
(int64_t)num_lines);
}
@@ -3800,8 +3800,8 @@ static int do_sub(exarg_T *eap, const proftime_T timeout, const long cmdpreview_
// needed
msg_no_more = true;
msg_ext_set_kind("confirm_sub");
- smsg_attr(HL_ATTR(HLF_R), // Same highlight as wait_return().
- _("replace with %s (y/n/a/q/l/^E/^Y)?"), sub);
+ // Same highlight as wait_return().
+ smsg(HL_ATTR(HLF_R), _("replace with %s (y/n/a/q/l/^E/^Y)?"), sub);
msg_no_more = false;
msg_scroll = (int)i;
if (!ui_has(kUIMessages)) {
@@ -4470,9 +4470,9 @@ void ex_global(exarg_T *eap)
msg(_(e_interr), 0);
} else if (ndone == 0) {
if (type == 'v') {
- smsg(_("Pattern found in every line: %s"), used_pat);
+ smsg(0, _("Pattern found in every line: %s"), used_pat);
} else {
- smsg(_("Pattern not found: %s"), used_pat);
+ smsg(0, _("Pattern not found: %s"), used_pat);
}
} else {
global_exe(cmd);