summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-09-05 13:05:29 +0100
committerBram Moolenaar <Bram@vim.org>2022-09-05 13:05:29 +0100
commitc47b16a47063735413ebe3885604c4460f724246 (patch)
tree72e4b67af3a549089d4f0413a1c961ef7e87ce1a
parentc7d2ff2ca03f1f36544a92cb93300eae06bcd0c0 (diff)
downloadvim-git-c47b16a47063735413ebe3885604c4460f724246.tar.gz
patch 9.0.0385: GUI: when CTRL-D is mapped in Insert mode it gets insertedv9.0.0385
Problem: GUI: when CTRL-D is mapped in Insert mode it gets inserted. (Yasuhiro Matsumoto) Solution: Also recognize modifier starting with CSI. (closes #11057)
-rw-r--r--src/getchar.c2
-rw-r--r--src/version.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/getchar.c b/src/getchar.c
index fee9191ba..51faa2382 100644
--- a/src/getchar.c
+++ b/src/getchar.c
@@ -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.
diff --git a/src/version.c b/src/version.c
index 181417f14..3df00f899 100644
--- a/src/version.c
+++ b/src/version.c
@@ -704,6 +704,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 385,
+/**/
384,
/**/
383,