patch 8.0.1068: vandyke SecureCRT terminal can't handle cursor mode request
Problem: Vandyke SecureCRT terminal can't handle cursor mode request.
(Steven Hartland)
Solution: Fix pointer computation. (closes #2008)
diff --git a/src/term.c b/src/term.c
index f2ffcc1..aedcc19 100644
--- a/src/term.c
+++ b/src/term.c
@@ -4583,7 +4583,7 @@
/* PuTTY sends 0;136;0
* vandyke SecureCRT sends 1;136;0 */
if (version == 136
- && STRNCMP(tp + extra - 3, ";136;0c", 8) == 0)
+ && STRNCMP(tp + extra - 1, ";136;0c", 7) == 0)
is_not_xterm = TRUE;
/* Konsole sends 0;115;0 */