mirror of
https://github.com/neovim/neovim.git
synced 2025-09-26 21:18:34 +00:00
Remove EXMODE_NORMAL
This commit is contained in:
@@ -2230,20 +2230,22 @@ static int vgetorpeek(bool advance)
|
||||
timedout = true;
|
||||
continue;
|
||||
}
|
||||
/* When 'insertmode' is set, ESC just beeps in Insert
|
||||
* mode. Use CTRL-L to make edit() return.
|
||||
* For the command line only CTRL-C always breaks it.
|
||||
* For the cmdline window: Alternate between ESC and
|
||||
* CTRL-C: ESC for most situations and CTRL-C to close the
|
||||
* cmdline window. */
|
||||
if (p_im && (State & INSERT))
|
||||
// When 'insertmode' is set, ESC just beeps in Insert
|
||||
// mode. Use CTRL-L to make edit() return.
|
||||
// In Ex-mode \n is compatible with original Vim behaviour.
|
||||
// For the command line only CTRL-C always breaks it.
|
||||
// For the cmdline window: Alternate between ESC and
|
||||
// CTRL-C: ESC for most situations and CTRL-C to close the
|
||||
// cmdline window.
|
||||
if (p_im && (State & INSERT)) {
|
||||
c = Ctrl_L;
|
||||
else if ((State & CMDLINE)
|
||||
|| (cmdwin_type > 0 && tc == ESC)
|
||||
)
|
||||
} else if (exmode_active) {
|
||||
c = '\n';
|
||||
} else if ((State & CMDLINE) || (cmdwin_type > 0 && tc == ESC)) {
|
||||
c = Ctrl_C;
|
||||
else
|
||||
} else {
|
||||
c = ESC;
|
||||
}
|
||||
tc = c;
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user