diff options
author | bfredl <bjorn.linse@gmail.com> | 2024-11-11 13:06:37 +0100 |
---|---|---|
committer | bfredl <bjorn.linse@gmail.com> | 2024-11-13 11:20:10 +0100 |
commit | ff7518b83cb270f8fcaded19bf640cf4bdfb0ff0 (patch) | |
tree | 366be69fff5a72c1f73b27ffa8cdf1a900288dbf /src/nvim/ui.c | |
parent | eaf5ae6cc69a97e58365b409554783be9dd21385 (diff) | |
download | rneovim-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/ui.c')
-rw-r--r-- | src/nvim/ui.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/ui.c b/src/nvim/ui.c index bd3679f708..560f76d0bd 100644 --- a/src/nvim/ui.c +++ b/src/nvim/ui.c @@ -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); } } |