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:
@@ -4626,6 +4626,10 @@ check_termcode(
|
|||||||
key_name[0] = (int)KS_EXTRA;
|
key_name[0] = (int)KS_EXTRA;
|
||||||
key_name[1] = (int)KE_IGNORE;
|
key_name[1] = (int)KE_IGNORE;
|
||||||
slen = i + 1 + (tp[i] == ESC);
|
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;
|
break;
|
||||||
}
|
}
|
||||||
if (i == len)
|
if (i == len)
|
||||||
|
@@ -769,6 +769,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
993,
|
||||||
/**/
|
/**/
|
||||||
992,
|
992,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user