0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

patch 8.2.4502: in the GUI a modifier is not recognized after CTRL-X

Problem:    In the GUI a modifier is not recognized for the key typed after
            CTRL-X, which may result in a mapping to be used. (Daniel
            Steinberg)
Solution:   Recognize a modifier starting with CSI. (closes #9889)
This commit is contained in:
Bram Moolenaar
2022-03-04 14:51:06 +00:00
parent 21efafe4c2
commit d979d64fa2
3 changed files with 15 additions and 2 deletions

View File

@@ -2331,7 +2331,7 @@ at_ctrl_x_key(void)
int c = *p;
if (typebuf.tb_len > 3
&& c == K_SPECIAL
&& (c == K_SPECIAL || c == CSI) // CSI is used by the GUI
&& p[1] == KS_MODIFIER
&& (p[2] & MOD_MASK_CTRL))
c = p[3] & 0x1f;