mirror of
https://github.com/neovim/neovim.git
synced 2025-09-30 06:58:35 +00:00
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.
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user