mirror of
https://github.com/vim/vim.git
synced 2025-09-29 04:34:16 -04:00
updated for version 7.1-192
This commit is contained in:
10
src/ops.c
10
src/ops.c
@@ -2468,9 +2468,10 @@ op_insert(oap, count1)
|
|||||||
|
|
||||||
edit(NUL, FALSE, (linenr_T)count1);
|
edit(NUL, FALSE, (linenr_T)count1);
|
||||||
|
|
||||||
/* if user has moved off this line, we don't know what to do, so do
|
/* If user has moved off this line, we don't know what to do, so do
|
||||||
* nothing */
|
* nothing.
|
||||||
if (curwin->w_cursor.lnum != oap->start.lnum)
|
* Also don't repeat the insert when Insert mode ended with CTRL-C. */
|
||||||
|
if (curwin->w_cursor.lnum != oap->start.lnum || got_int)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (oap->block_mode)
|
if (oap->block_mode)
|
||||||
@@ -2601,8 +2602,9 @@ op_change(oap)
|
|||||||
/*
|
/*
|
||||||
* In Visual block mode, handle copying the new text to all lines of the
|
* In Visual block mode, handle copying the new text to all lines of the
|
||||||
* block.
|
* block.
|
||||||
|
* Don't repeat the insert when Insert mode ended with CTRL-C.
|
||||||
*/
|
*/
|
||||||
if (oap->block_mode && oap->start.lnum != oap->end.lnum)
|
if (oap->block_mode && oap->start.lnum != oap->end.lnum && !got_int)
|
||||||
{
|
{
|
||||||
/* Auto-indenting may have changed the indent. If the cursor was past
|
/* Auto-indenting may have changed the indent. If the cursor was past
|
||||||
* the indent, exclude that indent change from the inserted text. */
|
* the indent, exclude that indent change from the inserted text. */
|
||||||
|
@@ -666,6 +666,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 */
|
||||||
|
/**/
|
||||||
|
192,
|
||||||
/**/
|
/**/
|
||||||
191,
|
191,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user