patch 8.2.4911: the mode #defines are not clearly named
Problem: The mode #defines are not clearly named.
Solution: Prepend MODE_. Renumber them to put the mapped modes first.
diff --git a/src/netbeans.c b/src/netbeans.c
index 8339b95..d393bba 100644
--- a/src/netbeans.c
+++ b/src/netbeans.c
@@ -1843,7 +1843,7 @@
out_flush_cursor(TRUE, FALSE);
// Quit a hit-return or more prompt.
- if (State == HITRETURN || State == ASKMORE)
+ if (State == MODE_HITRETURN || State == MODE_ASKMORE)
{
#ifdef FEAT_GUI_GTK
if (gui.in_use && gtk_main_level() > 0)
@@ -2229,7 +2229,7 @@
out_flush_cursor(TRUE, FALSE);
// Quit a hit-return or more prompt.
- if (State == HITRETURN || State == ASKMORE)
+ if (State == MODE_HITRETURN || State == MODE_ASKMORE)
{
#ifdef FEAT_GUI_GTK
if (gui.in_use && gtk_main_level() > 0)
@@ -2323,7 +2323,7 @@
strcpy(&keybuf[i], tok);
vim_snprintf(cmdbuf, sizeof(cmdbuf),
"<silent><%s> :nbkey %s<CR>", keybuf, keybuf);
- do_map(0, (char_u *)cmdbuf, NORMAL, FALSE);
+ do_map(0, (char_u *)cmdbuf, MODE_NORMAL, FALSE);
}
tok = strtok(NULL, " ");
}