mirror of
https://github.com/neovim/neovim.git
synced 2025-10-16 23:06:14 +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:
@@ -55,7 +55,7 @@ int ask_yesno(const char *const str, const bool direct)
|
||||
int r = ' ';
|
||||
while (r != 'y' && r != 'n') {
|
||||
// same highlighting as for wait_return()
|
||||
smsg(HLF_R + 1, "%s (y/n)?", str);
|
||||
smsg(HLF_R, "%s (y/n)?", str);
|
||||
if (direct) {
|
||||
r = get_keystroke(NULL);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user