1
0
forked from aniani/vim

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:
Bram Moolenaar
2017-02-01 15:03:30 +01:00
parent 1266d678bf
commit 0b5c93a7f2
3 changed files with 6 additions and 1 deletions

View File

@@ -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