aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/option.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/option.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/option.c')
-rw-r--r--src/nvim/option.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c
index 25e9fa471d..03b7c8cb14 100644
--- a/src/nvim/option.c
+++ b/src/nvim/option.c
@@ -1901,8 +1901,8 @@ static const char *did_set_arabic(optset_T *args)
if (strcmp(p_enc, "utf-8") != 0) {
static char *w_arabic = N_("W17: Arabic requires UTF-8, do ':set encoding=utf-8'");
- msg_source(HLF_W + 1);
- msg(_(w_arabic), HLF_W + 1);
+ msg_source(HLF_W);
+ msg(_(w_arabic), HLF_W);
set_vim_var_string(VV_WARNINGMSG, _(w_arabic), -1);
}