mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 22:18:33 +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:
@@ -358,8 +358,8 @@ void vim_beep(unsigned val)
|
||||
// a script or executing a function give the user a hint where the beep
|
||||
// comes from.
|
||||
if (vim_strchr(p_debug, 'e') != NULL) {
|
||||
msg_source(HLF_W + 1);
|
||||
msg(_("Beep!"), HLF_W + 1);
|
||||
msg_source(HLF_W);
|
||||
msg(_("Beep!"), HLF_W);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user