summaryrefslogtreecommitdiffstats
path: root/src/map.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-10-04 20:14:28 +0100
committerBram Moolenaar <Bram@vim.org>2022-10-04 20:14:28 +0100
commit2cd0f27b75c4497bec872819a965b3d6b4d55030 (patch)
tree4949cd7728a75470f146acd7778160b86da6059f /src/map.c
parentcaf05f504e062642c35a919b04f1b5638f994602 (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.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/map.c b/src/map.c
index 526ed50c49..e99da373b7 100644
--- a/src/map.c
+++ b/src/map.c
@@ -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++;