diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-10-04 20:14:28 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-10-04 20:14:28 +0100 |
commit | 2cd0f27b75c4497bec872819a965b3d6b4d55030 (patch) | |
tree | 4949cd7728a75470f146acd7778160b86da6059f /src/map.c | |
parent | caf05f504e062642c35a919b04f1b5638f994602 (diff) |
patch 9.0.0660: mapping with CTRL keys does not work in the GUIv9.0.0660
Problem: Mapping with CTRL keys does not work in the GUI.
Solution: Recognize CSI next to K_SPECIAL. (closes #11275, closes #11270)
Diffstat (limited to 'src/map.c')
-rw-r--r-- | src/map.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1753,7 +1753,11 @@ vim_strsave_escape_csi(char_u *p) d = res; for (s = p; *s != NUL; ) { - if (s[0] == K_SPECIAL && s[1] != NUL && s[2] != NUL) + if ((s[0] == K_SPECIAL +#ifdef FEAT_GUI + || (gui.in_use && s[0] == CSI) +#endif + ) && s[1] != NUL && s[2] != NUL) { // Copy special key unmodified. *d++ = *s++; |