mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 17:36:29 +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:
@@ -1523,7 +1523,7 @@ static void highlight_list_one(const int id)
|
||||
didh = true;
|
||||
msg_puts_attr("links to", HL_ATTR(HLF_D));
|
||||
msg_putchar(' ');
|
||||
msg_outtrans(hl_table[hl_table[id - 1].sg_link - 1].sg_name);
|
||||
msg_outtrans(hl_table[hl_table[id - 1].sg_link - 1].sg_name, 0);
|
||||
}
|
||||
|
||||
if (!didh) {
|
||||
@@ -1656,7 +1656,7 @@ static bool highlight_list_arg(const int id, bool didh, const int type, int iarg
|
||||
msg_puts_attr(name, HL_ATTR(HLF_D));
|
||||
msg_puts_attr("=", HL_ATTR(HLF_D));
|
||||
}
|
||||
msg_outtrans(ts);
|
||||
msg_outtrans(ts, 0);
|
||||
}
|
||||
return didh;
|
||||
}
|
||||
@@ -1786,7 +1786,7 @@ bool syn_list_header(const bool did_header, const int outlen, const int id, bool
|
||||
if (got_int) {
|
||||
return true;
|
||||
}
|
||||
msg_outtrans(hl_table[id - 1].sg_name);
|
||||
msg_outtrans(hl_table[id - 1].sg_name, 0);
|
||||
name_col = msg_col;
|
||||
endcol = 15;
|
||||
} else if ((ui_has(kUIMessages) || msg_silent) && !force_newline) {
|
||||
|
Reference in New Issue
Block a user