comparison src/ops.c @ 10785:9938c90d1e6c v8.0.0282

patch 8.0.0282: need to use CTRL-O twice when in Visual-Insert mode commit https://github.com/vim/vim/commit/0b5c93a7f266cd8c90ea27bdaf9f7214a95d64d7 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Feb 1 15:03:30 2017 +0100 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)
author Christian Brabandt <cb@256bit.org>
date Wed, 01 Feb 2017 15:15:04 +0100
parents d9aeddd9086b
children 065da86ca6d2
comparison
equal deleted inserted replaced
10784:422ba6de412f 10785:9938c90d1e6c
2569 inc_cursor(); 2569 inc_cursor();
2570 } 2570 }
2571 } 2571 }
2572 2572
2573 t1 = oap->start; 2573 t1 = oap->start;
2574 edit(NUL, FALSE, (linenr_T)count1); 2574 if (edit(NUL, FALSE, (linenr_T)count1))
2575 return;
2575 2576
2576 /* When a tab was inserted, and the characters in front of the tab 2577 /* When a tab was inserted, and the characters in front of the tab
2577 * have been converted to a tab as well, the column of the cursor 2578 * have been converted to a tab as well, the column of the cursor
2578 * might have actually been reduced, so need to adjust here. */ 2579 * might have actually been reduced, so need to adjust here. */
2579 if (t1.lnum == curbuf->b_op_start_orig.lnum 2580 if (t1.lnum == curbuf->b_op_start_orig.lnum