Skip to content

Commit 3d8d2c7

Browse files
committed
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)
1 parent 8b53b79 commit 3d8d2c7

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

src/term.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4572,12 +4572,12 @@ check_termcode(
45724572
&& STRNCMP(tp + extra - 2, "1;95;0c", 7) == 0)
45734573
is_not_xterm = TRUE;
45744574
# endif
4575-
/* Gnome terminal sends 1;3801;0 or 1;4402;0.
4575+
/* Gnome terminal sends 1;3801;0, 1;4402;0 or 1;2501;0.
45764576
* xfce4-terminal sends 1;2802;0.
45774577
* screen sends 83;40500;0
4578-
* Assuming any version number over 2800 is not an
4578+
* Assuming any version number over 2500 is not an
45794579
* xterm (without the limit for rxvt and screen). */
4580-
if (col >= 2800)
4580+
if (col >= 2500)
45814581
is_not_xterm = TRUE;
45824582

45834583
/* PuTTY sends 0;136;0 */

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -769,6 +769,8 @@ static char *(features[]) =
769769

770770
static int included_patches[] =
771771
{ /* Add new patch number below this line */
772+
/**/
773+
1059,
772774
/**/
773775
1058,
774776
/**/

0 commit comments

Comments
 (0)