diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-08-24 20:21:16 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-08-24 20:21:16 +0200 |
commit | f6d9f96b2d67327bbadd7210acc7c6028439bbcd (patch) | |
tree | 0a52fb30dff73669cea56a767e794a9bf191e008 /src | |
parent | 33d66bd9fa0e1b3fbba33d6a1a0609915ac79441 (diff) |
patch 8.0.0993: sometimes an xterm sends an extra CTRL-Xv8.0.0993
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/term.c | 4 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/term.c b/src/term.c index 6de45224c3..9e8bc3bbaf 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 1006ca0f04..e54b7bc4da 100644 --- a/src/version.c +++ b/src/version.c @@ -770,6 +770,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 993, +/**/ 992, /**/ 991, |