mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 09:26:30 +00:00
fix(edit): don't go to Terminal mode when stopping Insert mode (#27033)
This commit is contained in:
@@ -402,7 +402,7 @@ static int insert_check(VimState *state)
|
||||
Insstart_orig = Insstart;
|
||||
}
|
||||
|
||||
if (curbuf->terminal) {
|
||||
if (curbuf->terminal && !stop_insert_mode) {
|
||||
// Exit Insert mode and go to Terminal mode.
|
||||
stop_insert_mode = true;
|
||||
restart_edit = 'I';
|
||||
|
Reference in New Issue
Block a user