1
0
forked from aniani/vim

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.
This commit is contained in:
Bram Moolenaar
2017-08-30 18:59:03 +02:00
parent 0f0f230012
commit dc5471d482
2 changed files with 6 additions and 3 deletions

View File

@@ -4562,9 +4562,10 @@ check_termcode(
&& STRNCMP(tp + extra - 2, "1;95;0c", 7) == 0) && STRNCMP(tp + extra - 2, "1;95;0c", 7) == 0)
is_not_xterm = TRUE; is_not_xterm = TRUE;
# endif # endif
/* Gnome Terminal.app sends 1;4402;0, assuming any /* Gnome Terminal.app sends 1;3801;0 or 1;4402;0,
* version number over 4000 is not an xterm. */ * assuming any version number over 3000 is not an
if (col >= 4000) * xterm. */
if (col >= 3000)
is_not_xterm = TRUE; is_not_xterm = TRUE;
/* Only request the cursor style if t_SH and t_RS are /* Only request the cursor style if t_SH and t_RS are

View File

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