mirror of
https://github.com/neovim/neovim.git
synced 2025-09-19 17:58:18 +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:
@@ -3132,7 +3132,7 @@ static void qf_list_entry(qfline_T *qfp, int qf_idx, bool cursel)
|
||||
}
|
||||
|
||||
msg_putchar('\n');
|
||||
msg_outtrans_attr(IObuff, cursel ? HL_ATTR(HLF_QFL) : qfFileAttr);
|
||||
msg_outtrans(IObuff, cursel ? HL_ATTR(HLF_QFL) : qfFileAttr);
|
||||
|
||||
if (qfp->qf_lnum != 0) {
|
||||
msg_puts_attr(":", qfSepAttr);
|
||||
@@ -4317,7 +4317,7 @@ static char *make_get_fullcmd(const char *makecmd, const char *fname)
|
||||
}
|
||||
msg_start();
|
||||
msg_puts(":!");
|
||||
msg_outtrans(cmd); // show what we are doing
|
||||
msg_outtrans(cmd, 0); // show what we are doing
|
||||
|
||||
return cmd;
|
||||
}
|
||||
@@ -5168,9 +5168,9 @@ static void vgr_display_fname(char *fname)
|
||||
msg_start();
|
||||
char *p = msg_strtrunc(fname, true);
|
||||
if (p == NULL) {
|
||||
msg_outtrans(fname);
|
||||
msg_outtrans(fname, 0);
|
||||
} else {
|
||||
msg_outtrans(p);
|
||||
msg_outtrans(p, 0);
|
||||
xfree(p);
|
||||
}
|
||||
msg_clr_eos();
|
||||
|
Reference in New Issue
Block a user