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.
This commit is contained in:
@ -1843,7 +1843,7 @@ nb_do_cmd(
|
||||
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 @@ nb_do_cmd(
|
||||
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 @@ special_keys(char_u *args)
|
||||
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, " ");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user