Merge pull request #10117 from bfredl/ctrl-o_event

normal: Don't exit CTRL-O mode after processing K_EVENT
This commit is contained in:
Björn Linse
2019-06-04 15:23:40 +02:00
committed by GitHub
2 changed files with 17 additions and 0 deletions

View File

@@ -7983,8 +7983,14 @@ static void nv_event(cmdarg_T *cap)
// not safe to perform garbage collection because there could be unreferenced
// lists or dicts being used.
may_garbage_collect = false;
bool may_restart = (restart_edit != 0);
multiqueue_process_events(main_loop.events);
finish_op = false;
if (may_restart) {
// Tricky: if restart_edit was set before the handler we are in ctrl-o mode
// but if not, the event should be allow to trigger :startinsert
cap->retval |= CA_COMMAND_BUSY; // don't call edit() now
}
}
/*