changeset 12226:2b965b3dd20c v8.0.0993

patch 8.0.0993: sometimes an xterm sends an extra CTRL-X commit https://github.com/vim/vim/commit/f6d9f96b2d67327bbadd7210acc7c6028439bbcd Author: Bram Moolenaar <Bram@vim.org> Date: Thu Aug 24 20:21:16 2017 +0200 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.
author Christian Brabandt <cb@256bit.org>
date Thu, 24 Aug 2017 20:30:04 +0200
parents fc791b69be77
children f3de33e2c62d
files src/term.c src/version.c
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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)
--- 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,