]> granicus.if.org Git - vim/commitdiff
patch 8.2.2275: CTRL-C not recognized in Mintty v8.2.2275
authorBram Moolenaar <Bram@vim.org>
Sat, 2 Jan 2021 15:17:18 +0000 (16:17 +0100)
committerBram Moolenaar <Bram@vim.org>
Sat, 2 Jan 2021 15:17:18 +0000 (16:17 +0100)
Problem:    CTRL-C not recognized in Mintty.
Solution:   Recognize the modifyOtherKeys code ending in "u". (Christian
            Brabandt, closes #7575)

src/ui.c
src/version.c

index 7c866755953919e8e5c44f7620d3f3e0375c7a37..d29c26dab3e63b7aac7652e2f795b1d640d925bd 100644 (file)
--- a/src/ui.c
+++ b/src/ui.c
@@ -1014,11 +1014,14 @@ fill_input_buf(int exit_on_error UNUSED)
        {
            /*
             * If a CTRL-C was typed, remove it from the buffer and set
-            * got_int.  Also recognize CTRL-C with modifyOtherKeys set.
+            * got_int.  Also recognize CTRL-C with modifyOtherKeys set, in two
+            * forms.
             */
            if (ctrl_c_interrupts && (inbuf[inbufcount] == 3
                        || (len >= 9 && STRNCMP(inbuf + inbufcount,
-                                                  "\033[27;5;99~", 10) == 0)))
+                                                  "\033[27;5;99~", 10) == 0)
+                       || (len >= 7 && STRNCMP(inbuf + inbufcount,
+                                                      "\033[99;5u", 7) == 0)))
            {
                // remove everything typed before the CTRL-C
                mch_memmove(inbuf, inbuf + inbufcount, (size_t)(len + 1));
index 458c3a05b497097105c8cc3cd3b9240d0d87ea69..e6df8768a302c354ecd6f5b6ed76b78f7e38c53a 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2275,
 /**/
     2274,
 /**/