Permalink
Browse files

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)
  • Loading branch information...
brammool committed Feb 1, 2017
1 parent 1266d67 commit 0b5c93a7f266cd8c90ea27bdaf9f7214a95d64d7
Showing with 6 additions and 1 deletion.
  1. +2 −0 src/normal.c
  2. +2 −1 src/ops.c
  3. +2 −0 src/version.c
View
@@ -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);
View
@@ -2571,7 +2571,8 @@ op_insert(oparg_T *oap, long count1)
}
t1 = oap->start;
- edit(NUL, FALSE, (linenr_T)count1);
+ if (edit(NUL, FALSE, (linenr_T)count1))
+ return;
/* When a tab was inserted, and the characters in front of the tab
* have been converted to a tab as well, the column of the cursor
View
@@ -764,6 +764,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 282,
/**/
281,
/**/

0 comments on commit 0b5c93a

Please sign in to comment.