From: Bram Moolenaar Date: Thu, 24 Aug 2017 18:21:16 +0000 (+0200) Subject: patch 8.0.0993: sometimes an xterm sends an extra CTRL-X X-Git-Tag: v8.0.0993 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f6d9f96b2d67327bbadd7210acc7c6028439bbcd;p=vim 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. --- diff --git a/src/term.c b/src/term.c index 6de45224c..9e8bc3bba 100644 --- a/src/term.c +++ b/src/term.c @@ -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) diff --git a/src/version.c b/src/version.c index 1006ca0f0..e54b7bc4d 100644 --- a/src/version.c +++ b/src/version.c @@ -769,6 +769,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 993, /**/ 992, /**/