]> granicus.if.org Git - vim/commitdiff
updated for version 7.4.468 v7.4.468
authorBram Moolenaar <Bram@vim.org>
Thu, 9 Oct 2014 11:36:16 +0000 (13:36 +0200)
committerBram Moolenaar <Bram@vim.org>
Thu, 9 Oct 2014 11:36:16 +0000 (13:36 +0200)
Problem:    Issue 26: CTRL-C does not interrupt after it was mapped and then
            unmapped.
Solution:   Reset mapped_ctrl_c. (Christian Brabandt)

src/getchar.c
src/version.c

index d646dc4c156685e1b8df799e56a32569524cc5a9..9edb767e1b302e21533537c0cb9144aa217416db 100644 (file)
@@ -3707,6 +3707,9 @@ do_map(maptype, arg, mode, abbrev)
     {
        if (!did_it)
            retval = 2;                     /* no match */
+       else if (*keys == Ctrl_C)
+           /* If CTRL-C has been unmapped, reuse it for Interrupting. */
+           mapped_ctrl_c = FALSE;
        goto theend;
     }
 
@@ -3739,7 +3742,7 @@ do_map(maptype, arg, mode, abbrev)
        goto theend;
     }
 
-    /* If CTRL-C has been mapped, don't always use it for Interrupting */
+    /* If CTRL-C has been mapped, don't always use it for Interrupting. */
     if (*keys == Ctrl_C)
        mapped_ctrl_c = TRUE;
 
index 5979660f43f7e0be93ec7d3f91370227d70d319f..83887f67ecde93fdd79725c9fafcdbde9a282f50 100644 (file)
@@ -741,6 +741,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    468,
 /**/
     467,
 /**/