]> granicus.if.org Git - vim/commitdiff
patch 8.0.1066: some terminals can't handle requesting cursor mode v8.0.1066
authorBram Moolenaar <Bram@vim.org>
Wed, 6 Sep 2017 20:08:16 +0000 (22:08 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 6 Sep 2017 20:08:16 +0000 (22:08 +0200)
Problem:    Some terminals can't handle requesting cursor mode. (Steven
            Hartland)
Solution:   Recognize vandyke SecureCRT. (closes #2008)

src/term.c
src/version.c

index 7fa08c3dbd6ac728edd255b635c6737ba799f2a9..f2ffcc1c14bc2269d27769dce450c7b28f1e3e24 100644 (file)
@@ -4580,9 +4580,10 @@ check_termcode(
                        if (col >= 2500)
                            is_not_xterm = TRUE;
 
-                       /* PuTTY sends 0;136;0 */
+                       /* PuTTY sends 0;136;0
+                        * vandyke SecureCRT sends 1;136;0 */
                        if (version == 136
-                               && STRNCMP(tp + extra - 2, "0;136;0c", 8) == 0)
+                               && STRNCMP(tp + extra - 3, ";136;0c", 8) == 0)
                            is_not_xterm = TRUE;
 
                        /* Konsole sends 0;115;0 */
index 223ecf8c4628e318cb4ca67c48c79ac0a05afbf3..a3ab6edf54b04b8907d984167b3f590a02594982 100644 (file)
@@ -769,6 +769,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1066,
 /**/
     1065,
 /**/