Skip to content

Commit f6d9f96

Browse files
committed
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.
1 parent 33d66bd commit f6d9f96

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

src/term.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4626,6 +4626,10 @@ check_termcode(
46264626
key_name[0] = (int)KS_EXTRA;
46274627
key_name[1] = (int)KE_IGNORE;
46284628
slen = i + 1 + (tp[i] == ESC);
4629+
if (tp[i] == 0x07 && i + 1 < len && tp[i + 1] == 0x18)
4630+
/* Sometimes the 0x07 is followed by 0x18, unclear
4631+
* when this happens. */
4632+
++slen;
46294633
break;
46304634
}
46314635
if (i == len)

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -769,6 +769,8 @@ static char *(features[]) =
769769

770770
static int included_patches[] =
771771
{ /* Add new patch number below this line */
772+
/**/
773+
993,
772774
/**/
773775
992,
774776
/**/

0 commit comments

Comments
 (0)