]> granicus.if.org Git - vim/commitdiff
patch 8.0.1021: older Gnome terminal still echoes t_RC v8.0.1021
authorBram Moolenaar <Bram@vim.org>
Wed, 30 Aug 2017 16:59:03 +0000 (18:59 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 30 Aug 2017 16:59:03 +0000 (18:59 +0200)
Problem:    Older Gnome terminal still echoes t_RC. (Fracois Ingelrest)
Solution:   Check for version > 3000 instead of 4000.

src/term.c
src/version.c

index faf3762fb2d8853d52b1ad8f5cf95ae5df639deb..424489206f683418337e71db9509ce78c14f7753 100644 (file)
@@ -4562,9 +4562,10 @@ check_termcode(
                                && STRNCMP(tp + extra - 2, "1;95;0c", 7) == 0)
                            is_not_xterm = TRUE;
 #  endif
-                       /* Gnome Terminal.app sends 1;4402;0, assuming any
-                        * version number over 4000 is not an xterm. */
-                       if (col >= 4000)
+                       /* Gnome Terminal.app sends 1;3801;0 or 1;4402;0,
+                        * assuming any version number over 3000 is not an
+                        * xterm. */
+                       if (col >= 3000)
                            is_not_xterm = TRUE;
 
                        /* Only request the cursor style if t_SH and t_RS are
index e67ade34f206089184cced7e711aaa04c00106c1..e0be7aa26eb8721cf9204a7426f09e7d6cff2ab2 100644 (file)
@@ -769,6 +769,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1021,
 /**/
     1020,
 /**/