mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 13:38:34 +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:
@@ -495,7 +495,7 @@ static void uc_list(char *name, size_t name_len)
|
||||
msg_putchar(' ');
|
||||
}
|
||||
|
||||
msg_outtrans_attr(cmd->uc_name, HL_ATTR(HLF_D));
|
||||
msg_outtrans(cmd->uc_name, HL_ATTR(HLF_D));
|
||||
len = strlen(cmd->uc_name) + 4;
|
||||
|
||||
do {
|
||||
@@ -582,7 +582,7 @@ static void uc_list(char *name, size_t name_len)
|
||||
} while ((int64_t)len < 25 - over);
|
||||
|
||||
IObuff[len] = '\0';
|
||||
msg_outtrans(IObuff);
|
||||
msg_outtrans(IObuff, 0);
|
||||
|
||||
if (cmd->uc_luaref != LUA_NOREF) {
|
||||
char *fn = nlua_funcref_str(cmd->uc_luaref);
|
||||
|
Reference in New Issue
Block a user