aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/normal.c
diff options
context:
space:
mode:
authorLuuk van Baal <luukvbaal@gmail.com>2024-02-20 17:25:57 +0100
committerLuuk van Baal <luukvbaal@gmail.com>2024-11-08 13:21:35 +0100
commit5cfa7a72f8c40cdcc0fa93693689915e913806f1 (patch)
tree2c482565d5667dc0ec9caca6e893da7d5a37359a /src/nvim/normal.c
parent5a86360400691e55fae66d60485b61360a1d3d6c (diff)
downloadrneovim-5cfa7a72f8c40cdcc0fa93693689915e913806f1.tar.gz
rneovim-5cfa7a72f8c40cdcc0fa93693689915e913806f1.tar.bz2
rneovim-5cfa7a72f8c40cdcc0fa93693689915e913806f1.zip
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.
Diffstat (limited to 'src/nvim/normal.c')
-rw-r--r--src/nvim/normal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/normal.c b/src/nvim/normal.c
index aa247e39e6..d0517d5e4f 100644
--- a/src/nvim/normal.c
+++ b/src/nvim/normal.c
@@ -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);
}