aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/undo.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/undo.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/undo.c')
-rw-r--r--src/nvim/undo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/undo.c b/src/nvim/undo.c
index 52581bea36..0f8857a6bd 100644
--- a/src/nvim/undo.c
+++ b/src/nvim/undo.c
@@ -2712,7 +2712,7 @@ void ex_undolist(exarg_T *eap)
sort_strings(ga.ga_data, ga.ga_len);
msg_start();
- msg_puts_hl(_("number changes when saved"), HLF_T + 1, false);
+ msg_puts_hl(_("number changes when saved"), HLF_T, false);
for (int i = 0; i < ga.ga_len && !got_int; i++) {
msg_putchar('\n');
if (got_int) {