mirror of
https://github.com/neovim/neovim.git
synced 2025-09-23 11:38:31 +00:00
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
This commit is contained in:
@@ -3308,7 +3308,7 @@ static void qf_msg(qf_info_T *qi, int which, char *lead)
|
||||
xstrlcat(buf, title, IOSIZE);
|
||||
}
|
||||
trunc_string(buf, buf, Columns - 1, IOSIZE);
|
||||
msg(buf);
|
||||
msg(buf, 0);
|
||||
}
|
||||
|
||||
/// ":colder [count]": Up in the quickfix stack.
|
||||
@@ -3367,7 +3367,7 @@ void qf_history(exarg_T *eap)
|
||||
}
|
||||
|
||||
if (qf_stack_empty(qi)) {
|
||||
msg(_("No entries"));
|
||||
msg(_("No entries"), 0);
|
||||
} else {
|
||||
for (int i = 0; i < qi->qf_listcount; i++) {
|
||||
qf_msg(qi, i, i == qi->qf_curlist ? "> " : " ");
|
||||
|
Reference in New Issue
Block a user