aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/debugger.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/debugger.c
parent8e11c18d4962c5367a0549bdb2288323545852b6 (diff)
downloadrneovim-bc13bc154aa574e0bb58a50f2e0ca4570efa57c3.tar.gz
rneovim-bc13bc154aa574e0bb58a50f2e0ca4570efa57c3.tar.bz2
rneovim-bc13bc154aa574e0bb58a50f2e0ca4570efa57c3.zip
refactor(message): smsg_attr -> smsg
Diffstat (limited to 'src/nvim/debugger.c')
-rw-r--r--src/nvim/debugger.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/nvim/debugger.c b/src/nvim/debugger.c
index 86ad70196d..ea6fd3bcb4 100644
--- a/src/nvim/debugger.c
+++ b/src/nvim/debugger.c
@@ -105,12 +105,12 @@ void do_debug(char *cmd)
msg(_("Entering Debug mode. Type \"cont\" to continue."), 0);
}
if (debug_oldval != NULL) {
- smsg(_("Oldval = \"%s\""), debug_oldval);
+ smsg(0, _("Oldval = \"%s\""), debug_oldval);
xfree(debug_oldval);
debug_oldval = NULL;
}
if (debug_newval != NULL) {
- smsg(_("Newval = \"%s\""), debug_newval);
+ smsg(0, _("Newval = \"%s\""), debug_newval);
xfree(debug_newval);
debug_newval = NULL;
}
@@ -120,9 +120,9 @@ void do_debug(char *cmd)
}
xfree(sname);
if (SOURCING_LNUM != 0) {
- smsg(_("line %" PRId64 ": %s"), (int64_t)SOURCING_LNUM, cmd);
+ smsg(0, _("line %" PRId64 ": %s"), (int64_t)SOURCING_LNUM, cmd);
} else {
- smsg(_("cmd: %s"), cmd);
+ smsg(0, _("cmd: %s"), cmd);
}
// Repeat getting a command and executing it.
@@ -352,7 +352,7 @@ static void do_checkbacktracelevel(void)
if (debug_backtrace_level > max) {
debug_backtrace_level = max;
- smsg(_("frame at highest level: %d"), max);
+ smsg(0, _("frame at highest level: %d"), max);
}
xfree(sname);
}
@@ -371,9 +371,9 @@ static void do_showbacktrace(char *cmd)
*next = NUL;
}
if (i == max - debug_backtrace_level) {
- smsg("->%d %s", max - i, cur);
+ smsg(0, "->%d %s", max - i, cur);
} else {
- smsg(" %d %s", max - i, cur);
+ smsg(0, " %d %s", max - i, cur);
}
i++;
if (next == NULL) {
@@ -386,9 +386,9 @@ static void do_showbacktrace(char *cmd)
}
if (SOURCING_LNUM != 0) {
- smsg(_("line %" PRId64 ": %s"), (int64_t)SOURCING_LNUM, cmd);
+ smsg(0, _("line %" PRId64 ": %s"), (int64_t)SOURCING_LNUM, cmd);
} else {
- smsg(_("cmd: %s"), cmd);
+ smsg(0, _("cmd: %s"), cmd);
}
}
@@ -432,7 +432,7 @@ void dbg_check_breakpoint(exarg_T *eap)
} else {
p = "";
}
- smsg(_("Breakpoint in \"%s%s\" line %" PRId64),
+ smsg(0, _("Breakpoint in \"%s%s\" line %" PRId64),
p,
debug_breakpoint_name + (*p == NUL ? 0 : 3),
(int64_t)debug_breakpoint_lnum);
@@ -729,13 +729,13 @@ void ex_breaklist(exarg_T *eap)
home_replace(NULL, bp->dbg_name, NameBuff, MAXPATHL, true);
}
if (bp->dbg_type != DBG_EXPR) {
- smsg(_("%3d %s %s line %" PRId64),
+ smsg(0, _("%3d %s %s line %" PRId64),
bp->dbg_nr,
bp->dbg_type == DBG_FUNC ? "func" : "file",
bp->dbg_type == DBG_FUNC ? bp->dbg_name : NameBuff,
(int64_t)bp->dbg_lnum);
} else {
- smsg(_("%3d expr %s"), bp->dbg_nr, bp->dbg_name);
+ smsg(0, _("%3d expr %s"), bp->dbg_nr, bp->dbg_name);
}
}
}