]> granicus.if.org Git - vim/commitdiff
updated for version 7.1-192 v7.1.192
authorBram Moolenaar <Bram@vim.org>
Thu, 3 Jan 2008 15:34:40 +0000 (15:34 +0000)
committerBram Moolenaar <Bram@vim.org>
Thu, 3 Jan 2008 15:34:40 +0000 (15:34 +0000)
src/ops.c
src/version.c

index 82107cc48a04b92353f31ae0ffd076a8cd174b37..f348a890e99118f9125b9e402028fa3d2f6913cb 100644 (file)
--- a/src/ops.c
+++ b/src/ops.c
@@ -2468,9 +2468,10 @@ op_insert(oap, count1)
 
     edit(NUL, FALSE, (linenr_T)count1);
 
-    /* if user has moved off this line, we don't know what to do, so do
-     * nothing */
-    if (curwin->w_cursor.lnum != oap->start.lnum)
+    /* If user has moved off this line, we don't know what to do, so do
+     * nothing.
+     * Also don't repeat the insert when Insert mode ended with CTRL-C. */
+    if (curwin->w_cursor.lnum != oap->start.lnum || got_int)
        return;
 
     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
      * 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
         * the indent, exclude that indent change from the inserted text. */
index 55fdbac99dff2ba279eacbdcb2895a2553ed18e7..676f901f2b039dcfa24cfd54d8f1ea7cc224b449 100644 (file)
@@ -666,6 +666,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    192,
 /**/
     191,
 /**/