]> granicus.if.org Git - vim/commitdiff
patch 9.0.0385: GUI: when CTRL-D is mapped in Insert mode it gets inserted v9.0.0385
authorzeertzjq <zeertzjq@outlook.com>
Mon, 5 Sep 2022 12:05:29 +0000 (13:05 +0100)
committerBram Moolenaar <Bram@vim.org>
Mon, 5 Sep 2022 12:05:29 +0000 (13:05 +0100)
Problem:    GUI: when CTRL-D is mapped in Insert mode it gets inserted.
            (Yasuhiro Matsumoto)
Solution:   Also recognize modifier starting with CSI. (closes #11057)

src/getchar.c
src/version.c

index fee9191ba03c5b7511f7a3269f628ef972afa102..51faa2382cf69a1ce58dbad246d0cbcc621bb6eb 100644 (file)
@@ -2356,7 +2356,7 @@ check_simplify_modifier(int max_offset)
        if (offset + 3 >= typebuf.tb_len)
            break;
        tp = typebuf.tb_buf + typebuf.tb_off + offset;
-       if (tp[0] == K_SPECIAL && tp[1] == KS_MODIFIER)
+       if ((tp[0] == K_SPECIAL || tp[0] == CSI) && tp[1] == KS_MODIFIER)
        {
            // A modifier was not used for a mapping, apply it to ASCII keys.
            // Shift would already have been applied.
index 181417f14cc1b0e7097aecb3ac747b6b133752c4..3df00f899fb043d0dcd7906b6a1da3298ecba800 100644 (file)
@@ -703,6 +703,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    385,
 /**/
     384,
 /**/