0
0
mirror of https://github.com/vim/vim.git synced 2025-09-29 04:34:16 -04:00

patch 8.0.0993: sometimes an xterm sends an extra CTRL-X

Problem:    Sometimes an xterm sends an extra CTRL-X after the response for
            the background color.  Related to t_RS.
Solution:   Check for the CTRL-X after the terminating 0x7.
This commit is contained in:
Bram Moolenaar
2017-08-24 20:21:16 +02:00
parent 33d66bd9fa
commit f6d9f96b2d
2 changed files with 6 additions and 0 deletions

View File

@@ -4626,6 +4626,10 @@ check_termcode(
key_name[0] = (int)KS_EXTRA;
key_name[1] = (int)KE_IGNORE;
slen = i + 1 + (tp[i] == ESC);
if (tp[i] == 0x07 && i + 1 < len && tp[i + 1] == 0x18)
/* Sometimes the 0x07 is followed by 0x18, unclear
* when this happens. */
++slen;
break;
}
if (i == len)

View File

@@ -769,6 +769,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
993,
/**/
992,
/**/