mirror of
https://github.com/neovim/neovim.git
synced 2025-10-07 02:16:31 +00:00
refactor(messages): fold msg_outtrans_attr into msg_outtrans
problem: there are too many different functions in message.c solution: fold some of the functions into themselves
This commit is contained in:
@@ -228,7 +228,7 @@ static void au_show_for_event(int group, event_T event, const char *pat)
|
||||
}
|
||||
|
||||
msg_col = 4;
|
||||
msg_outtrans(ac->pat->pat);
|
||||
msg_outtrans(ac->pat->pat, 0);
|
||||
}
|
||||
|
||||
if (got_int) {
|
||||
@@ -253,12 +253,12 @@ static void au_show_for_event(int group, event_T event, const char *pat)
|
||||
} else {
|
||||
snprintf(msg, msglen, "%s [%s]", exec_to_string, ac->desc);
|
||||
}
|
||||
msg_outtrans(msg);
|
||||
msg_outtrans(msg, 0);
|
||||
XFREE_CLEAR(msg);
|
||||
} else if (ac->exec.type == CALLABLE_CB) {
|
||||
msg_puts_attr(exec_to_string, HL_ATTR(HLF_8));
|
||||
} else {
|
||||
msg_outtrans(exec_to_string);
|
||||
msg_outtrans(exec_to_string, 0);
|
||||
}
|
||||
XFREE_CLEAR(exec_to_string);
|
||||
if (p_verbose > 0) {
|
||||
|
Reference in New Issue
Block a user