mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 9.0.0385: GUI: when CTRL-D is mapped in Insert mode it gets inserted
Problem: GUI: when CTRL-D is mapped in Insert mode it gets inserted. (Yasuhiro Matsumoto) Solution: Also recognize modifier starting with CSI. (closes #11057)
This commit is contained in:
parent
c7d2ff2ca0
commit
c47b16a470
@ -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.
|
||||
|
@ -703,6 +703,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
385,
|
||||
/**/
|
||||
384,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user