diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-02-01 15:03:30 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-02-01 15:03:30 +0100 |
commit | 0b5c93a7f266cd8c90ea27bdaf9f7214a95d64d7 (patch) | |
tree | 19be83989f8bf599da23e28d04364bcbea22c1ee /src/ops.c | |
parent | 1266d678bf2ed5072cca9381409536406f8d7b32 (diff) | |
download | vim-git-0b5c93a7f266cd8c90ea27bdaf9f7214a95d64d7.tar.gz |
patch 8.0.0282: need to use CTRL-O twice when in Visual-Insert modev8.0.0282
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)
Diffstat (limited to 'src/ops.c')
-rw-r--r-- | src/ops.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |