1
0
forked from aniani/vim

patch 9.0.0660: mapping with CTRL keys does not work in the GUI

Problem:    Mapping with CTRL keys does not work in the GUI.
Solution:   Recognize CSI next to K_SPECIAL. (closes #11275, closes #11270)
This commit is contained in:
zeertzjq
2022-10-04 20:14:28 +01:00
committed by Bram Moolenaar
parent caf05f504e
commit 2cd0f27b75
3 changed files with 26 additions and 1 deletions

View File

@@ -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++;