mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 22:18:33 +00:00
refactor(message): propagate highlight id instead of attrs
Problem: Highlight group id is not propagated to the end of the message call stack, where ext_messages are emitted. Solution: Refactor message functions to pass along highlight group id instead of attr id.
This commit is contained in:
@@ -358,8 +358,8 @@ void vim_beep(unsigned val)
|
||||
// a script or executing a function give the user a hint where the beep
|
||||
// comes from.
|
||||
if (vim_strchr(p_debug, 'e') != NULL) {
|
||||
msg_source(HL_ATTR(HLF_W));
|
||||
msg(_("Beep!"), HL_ATTR(HLF_W));
|
||||
msg_source(HLF_W + 1);
|
||||
msg(_("Beep!"), HLF_W + 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user