aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/digraph.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2024-11-11 13:06:37 +0100
committerbfredl <bjorn.linse@gmail.com>2024-11-13 11:20:10 +0100
commitff7518b83cb270f8fcaded19bf640cf4bdfb0ff0 (patch)
tree366be69fff5a72c1f73b27ffa8cdf1a900288dbf /src/nvim/digraph.c
parenteaf5ae6cc69a97e58365b409554783be9dd21385 (diff)
downloadrneovim-ff7518b83cb270f8fcaded19bf640cf4bdfb0ff0.tar.gz
rneovim-ff7518b83cb270f8fcaded19bf640cf4bdfb0ff0.tar.bz2
rneovim-ff7518b83cb270f8fcaded19bf640cf4bdfb0ff0.zip
refactor(highlight): make enum of builtin highlights start with 1
This makes it possible to use HLF_ values directly as highlight id:s and avoids +1 adjustments especially around messages.
Diffstat (limited to 'src/nvim/digraph.c')
-rw-r--r--src/nvim/digraph.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/digraph.c b/src/nvim/digraph.c
index 97b47a5ee7..ea0d1ba708 100644
--- a/src/nvim/digraph.c
+++ b/src/nvim/digraph.c
@@ -1707,7 +1707,7 @@ static void digraph_header(const char *msg)
if (msg_col > 0) {
msg_putchar('\n');
}
- msg_outtrans(msg, HLF_CM + 1, false);
+ msg_outtrans(msg, HLF_CM, false);
msg_putchar('\n');
}
@@ -1871,7 +1871,7 @@ static void printdigraph(const digr_T *dp, result_T *previous)
p += utf_char2bytes(dp->result, p);
*p = NUL;
- msg_outtrans(buf, HLF_8 + 1, false);
+ msg_outtrans(buf, HLF_8, false);
p = buf;
if (char2cells(dp->result) == 1) {
*p++ = ' ';