mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
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)
This commit is contained in:
@@ -2041,6 +2041,8 @@ do_pending_operator(cmdarg_T *cap, int old_col, int gui_yank)
|
|||||||
|
|
||||||
if (restart_edit == 0)
|
if (restart_edit == 0)
|
||||||
restart_edit = restart_edit_save;
|
restart_edit = restart_edit_save;
|
||||||
|
else
|
||||||
|
cap->retval |= CA_COMMAND_BUSY;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
vim_beep(BO_OPER);
|
vim_beep(BO_OPER);
|
||||||
|
@@ -2571,7 +2571,8 @@ op_insert(oparg_T *oap, long count1)
|
|||||||
}
|
}
|
||||||
|
|
||||||
t1 = oap->start;
|
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
|
/* 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
|
* have been converted to a tab as well, the column of the cursor
|
||||||
|
@@ -764,6 +764,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
282,
|
||||||
/**/
|
/**/
|
||||||
281,
|
281,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user