]> granicus.if.org Git - vim/commitdiff
patch 8.1.0129: still some xterm-like terminals get a stray "p" v8.1.0129
authorBram Moolenaar <Bram@vim.org>
Sat, 30 Jun 2018 15:09:26 +0000 (17:09 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 30 Jun 2018 15:09:26 +0000 (17:09 +0200)
Problem:    Still some xterm-like terminals get a stray "p" on startup.
Solution:   Consider all terminals that reply with a version smaller than 95
            as not an xterm. (James McCoy)

src/term.c
src/version.c

index 4bb8030cbe223dc9223875c2c3c8f7e6a8325aac..80834ce615dd56eb3450d9ed393266f7766bcf02 100644 (file)
@@ -4690,6 +4690,11 @@ check_termcode(
                                && STRNCMP(tp + extra - 2, "0;115;0c", 8) == 0)
                            is_not_xterm = TRUE;
 
+                       // Xterm first responded to this request at patch level
+                       // 95, so assume anything below 95 is not xterm.
+                       if (version < 95)
+                           is_not_xterm = TRUE;
+
                        /* Only request the cursor style if t_SH and t_RS are
                         * set. Only supported properly by xterm since version
                         * 279 (otherwise it returns 0x18).
index 72e85473c40822c4e6619934200d818d6c0e1301..f4399cc5c9dc5669714718c155ae01f866fab499 100644 (file)
@@ -789,6 +789,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    129,
 /**/
     127,
 /**/