From 3d8d2c7ca5dda5bfd62c6d5df6659cf62e960a3d Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 5 Sep 2017 21:57:27 +0200 Subject: [PATCH] patch 8.0.1059: older Gnome terminal returns smaller version number Problem: older Gnome terminal returns smaller version number. (antarestrue) Solution: Lower version limit from 2800 to 2500. (#2032) --- src/term.c | 6 +++--- src/version.c | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/term.c b/src/term.c index 413d4bb88..7fa08c3db 100644 --- a/src/term.c +++ b/src/term.c @@ -4572,12 +4572,12 @@ check_termcode( && STRNCMP(tp + extra - 2, "1;95;0c", 7) == 0) is_not_xterm = TRUE; # endif - /* Gnome terminal sends 1;3801;0 or 1;4402;0. + /* Gnome terminal sends 1;3801;0, 1;4402;0 or 1;2501;0. * xfce4-terminal sends 1;2802;0. * screen sends 83;40500;0 - * Assuming any version number over 2800 is not an + * Assuming any version number over 2500 is not an * xterm (without the limit for rxvt and screen). */ - if (col >= 2800) + if (col >= 2500) is_not_xterm = TRUE; /* PuTTY sends 0;136;0 */ diff --git a/src/version.c b/src/version.c index 79ce0e042..61b5b94dd 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 */ +/**/ + 1059, /**/ 1058, /**/ -- 2.50.1