From 0b5c93a7f266cd8c90ea27bdaf9f7214a95d64d7 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 1 Feb 2017 15:03:30 +0100 Subject: patch 8.0.0282: need to use CTRL-O twice when in Visual-Insert mode Problem: When doing a Visual selection and using "I" to go to insert mode, CTRL-O needs to be used twice to go to Normal mode. (Coacher) Solution: Check for the return value of edit(). (Christian Brabandt, closes #1290) --- src/normal.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/normal.c') diff --git a/src/normal.c b/src/normal.c index 2b867bb19..7bae34ed2 100644 --- a/src/normal.c +++ b/src/normal.c @@ -2041,6 +2041,8 @@ do_pending_operator(cmdarg_T *cap, int old_col, int gui_yank) if (restart_edit == 0) restart_edit = restart_edit_save; + else + cap->retval |= CA_COMMAND_BUSY; } #else vim_beep(BO_OPER); -- cgit v1.2.1