mirror of
https://github.com/neovim/neovim.git
synced 2025-10-07 10:26:31 +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:
@@ -450,7 +450,7 @@ int buf_write_all(buf_T *buf, bool forceit)
|
||||
1, buf->b_ml.ml_line_count, NULL,
|
||||
false, forceit, true, false));
|
||||
if (curbuf != old_curbuf) {
|
||||
msg_source(HL_ATTR(HLF_W));
|
||||
msg_source(HLF_W + 1);
|
||||
msg(_("Warning: Entered other buffer unexpectedly (check autocommands)"), 0);
|
||||
}
|
||||
return retval;
|
||||
|
Reference in New Issue
Block a user