aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_docmd.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/ex_docmd.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/ex_docmd.c')
-rw-r--r--src/nvim/ex_docmd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c
index 92695aa4de..cdf977fce2 100644
--- a/src/nvim/ex_docmd.c
+++ b/src/nvim/ex_docmd.c
@@ -5501,7 +5501,7 @@ static void ex_tabs(exarg_T *eap)
msg_putchar('\n');
vim_snprintf(IObuff, IOSIZE, _("Tab page %d"), tabcount++);
- msg_outtrans(IObuff, HL_ATTR(HLF_T));
+ msg_outtrans(IObuff, HLF_T + 1, false);
os_breakcheck();
FOR_ALL_WINDOWS_IN_TAB(wp, tp) {
@@ -5519,7 +5519,7 @@ static void ex_tabs(exarg_T *eap)
} else {
home_replace(wp->w_buffer, wp->w_buffer->b_fname, IObuff, IOSIZE, true);
}
- msg_outtrans(IObuff, 0);
+ msg_outtrans(IObuff, 0, false);
os_breakcheck();
}
}
@@ -7776,7 +7776,7 @@ void verify_command(char *cmd)
if (strcmp("smile", cmd) != 0) {
return; // acceptable non-existing command
}
- int a = HL_ATTR(HLF_E);
+ int a = HLF_E + 1;
msg(" #xxn` #xnxx` ,+x@##@Mz;` .xxx"
"xxxxxxnz+, znnnnnnnnnnnnnnnn.", a);
msg(" n###z x####` :x##########W+` ,###"