Skip to content

Commit dc5471d

Browse files
committed
patch 8.0.1021: older Gnome terminal still echoes t_RC
Problem: Older Gnome terminal still echoes t_RC. (Fracois Ingelrest) Solution: Check for version > 3000 instead of 4000.
1 parent 0f0f230 commit dc5471d

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

src/term.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4562,9 +4562,10 @@ check_termcode(
45624562
&& STRNCMP(tp + extra - 2, "1;95;0c", 7) == 0)
45634563
is_not_xterm = TRUE;
45644564
# endif
4565-
/* Gnome Terminal.app sends 1;4402;0, assuming any
4566-
* version number over 4000 is not an xterm. */
4567-
if (col >= 4000)
4565+
/* Gnome Terminal.app sends 1;3801;0 or 1;4402;0,
4566+
* assuming any version number over 3000 is not an
4567+
* xterm. */
4568+
if (col >= 3000)
45684569
is_not_xterm = TRUE;
45694570

45704571
/* Only request the cursor style if t_SH and t_RS are

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+
1021,
772774
/**/
773775
1020,
774776
/**/

0 commit comments

Comments
 (0)