diff options
author | bfredl <bjorn.linse@gmail.com> | 2024-11-13 12:34:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-13 12:34:09 +0100 |
commit | 37f665c504e499c95bc0a88c52dd38ca9f621cdd (patch) | |
tree | 366be69fff5a72c1f73b27ffa8cdf1a900288dbf /src/nvim/mapping.c | |
parent | eaf5ae6cc69a97e58365b409554783be9dd21385 (diff) | |
parent | ff7518b83cb270f8fcaded19bf640cf4bdfb0ff0 (diff) | |
download | rneovim-37f665c504e499c95bc0a88c52dd38ca9f621cdd.tar.gz rneovim-37f665c504e499c95bc0a88c52dd38ca9f621cdd.tar.bz2 rneovim-37f665c504e499c95bc0a88c52dd38ca9f621cdd.zip |
Merge pull request #31164 from bfredl/hlf_enum
refactor(highlight): make enum of builtin highlights start with 1
Diffstat (limited to 'src/nvim/mapping.c')
-rw-r--r-- | src/nvim/mapping.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/mapping.c b/src/nvim/mapping.c index 0e83ae6fab..1a6b2c3581 100644 --- a/src/nvim/mapping.c +++ b/src/nvim/mapping.c @@ -239,9 +239,9 @@ static void showmap(mapblock_T *mp, bool local) } while (len < 12); if (mp->m_noremap == REMAP_NONE) { - msg_puts_hl("*", HLF_8 + 1, false); + msg_puts_hl("*", HLF_8, false); } else if (mp->m_noremap == REMAP_SCRIPT) { - msg_puts_hl("&", HLF_8 + 1, false); + msg_puts_hl("&", HLF_8, false); } else { msg_putchar(' '); } @@ -256,10 +256,10 @@ static void showmap(mapblock_T *mp, bool local) // the rhs, and not M-x etc, true gets both -- webb if (mp->m_luaref != LUA_NOREF) { char *str = nlua_funcref_str(mp->m_luaref, NULL); - msg_puts_hl(str, HLF_8 + 1, false); + msg_puts_hl(str, HLF_8, false); xfree(str); } else if (mp->m_str[0] == NUL) { - msg_puts_hl("<Nop>", HLF_8 + 1, false); + msg_puts_hl("<Nop>", HLF_8, false); } else { msg_outtrans_special(mp->m_str, false, 0); } |