mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 14:38:32 +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:
@@ -693,7 +693,7 @@ static void normal_redraw_mode_message(NormalState *s)
|
||||
keep_msg = kmsg;
|
||||
|
||||
kmsg = xstrdup(keep_msg);
|
||||
msg(kmsg, keep_msg_attr);
|
||||
msg(kmsg, keep_msg_hl_id);
|
||||
xfree(kmsg);
|
||||
}
|
||||
setcursor();
|
||||
@@ -1388,7 +1388,7 @@ static void normal_redraw(NormalState *s)
|
||||
// check for duplicates. Never put this message in
|
||||
// history.
|
||||
msg_hist_off = true;
|
||||
msg(p, keep_msg_attr);
|
||||
msg(p, keep_msg_hl_id);
|
||||
msg_hist_off = false;
|
||||
xfree(p);
|
||||
}
|
||||
|
Reference in New Issue
Block a user