mirror of
https://github.com/neovim/neovim.git
synced 2025-10-07 10:26:31 +00:00
refactor(message): smsg_attr -> smsg
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user