summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-08-30 18:59:03 +0200
committerBram Moolenaar <Bram@vim.org>2017-08-30 18:59:03 +0200
commitdc5471d482c372f547006325d7c8f16d6cc9d371 (patch)
tree7e627e668d497881ba16c80b543ecf97a1677831 /src
parent0f0f230012f5a9beb6876158a17b432534836c6f (diff)
patch 8.0.1021: older Gnome terminal still echoes t_RCv8.0.1021
Problem: Older Gnome terminal still echoes t_RC. (Fracois Ingelrest) Solution: Check for version > 3000 instead of 4000.
Diffstat (limited to 'src')
-rw-r--r--src/term.c7
-rw-r--r--src/version.c2
2 files changed, 6 insertions, 3 deletions
diff --git a/src/term.c b/src/term.c
index faf3762fb2..424489206f 100644
--- a/src/term.c
+++ b/src/term.c
@@ -4562,9 +4562,10 @@ check_termcode(
&& STRNCMP(tp + extra - 2, "1;95;0c", 7) == 0)
is_not_xterm = TRUE;
# endif
- /* Gnome Terminal.app sends 1;4402;0, assuming any
- * version number over 4000 is not an xterm. */
- if (col >= 4000)
+ /* Gnome Terminal.app sends 1;3801;0 or 1;4402;0,
+ * assuming any version number over 3000 is not an
+ * xterm. */
+ if (col >= 3000)
is_not_xterm = TRUE;
/* Only request the cursor style if t_SH and t_RS are
diff --git a/src/version.c b/src/version.c
index e67ade34f2..e0be7aa26e 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 */
/**/
+ 1021,
+/**/
1020,
/**/
1019,