mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 14:38:32 +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:
@@ -3035,9 +3035,9 @@ int buf_check_timestamp(buf_T *buf)
|
||||
} else {
|
||||
if (!autocmd_busy) {
|
||||
msg_start();
|
||||
msg_puts_hl(tbuf, HLF_E + 1, true);
|
||||
msg_puts_hl(tbuf, HLF_E, true);
|
||||
if (*mesg2 != NUL) {
|
||||
msg_puts_hl(mesg2, HLF_W + 1, true);
|
||||
msg_puts_hl(mesg2, HLF_W, true);
|
||||
}
|
||||
msg_clr_eos();
|
||||
msg_end();
|
||||
|
Reference in New Issue
Block a user