1
0
forked from aniani/vim

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)
This commit is contained in:
Bram Moolenaar
2017-09-05 21:57:27 +02:00
parent 8b53b79ea5
commit 3d8d2c7ca5
2 changed files with 5 additions and 3 deletions

View File

@@ -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 */

View File

@@ -769,6 +769,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1059,
/**/
1058,
/**/