]> granicus.if.org Git - vim/commitdiff
patch 8.0.0997 v8.0.0997
authorBram Moolenaar <Bram@vim.org>
Sat, 26 Aug 2017 13:29:47 +0000 (15:29 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 26 Aug 2017 13:29:47 +0000 (15:29 +0200)
Problem:    Libvterm and Terminal.app not regognized from termresponse.
Solution:   Adjust string compare.

src/term.c
src/version.c

index 716c89cf845f87b95e060308f209a3c77f1a7e06..b9594d5fc19621652a277945981fdcd12fe6461c 100644 (file)
@@ -4510,7 +4510,7 @@ check_termcode(
 
                        /* libvterm sends 0;100;0 */
                        if (col == 100
-                               && STRNCMP(tp + extra - 2, ">0;100;0c", 9) == 0)
+                               && STRNCMP(tp + extra - 2, "0;100;0c", 8) == 0)
                        {
                            /* If run from Vim $COLORS is set to the number of
                             * colors the terminal supports.  Otherwise assume
@@ -4522,7 +4522,7 @@ check_termcode(
 #  ifdef MACOS
                        /* Mac Terminal.app sends 1;95;0 */
                        if (col == 95
-                               && STRNCMP(tp + extra - 2, ">1;95;0c", 9) == 0)
+                               && STRNCMP(tp + extra - 2, "1;95;0c", 7) == 0)
                        {
                            /* Terminal.app sets $TERM to "xterm-256colors",
                             * but it's not fully xterm compatible. */
index 430ac8bc7c8c97c554015a7c8af2d11d82b000f5..d2f728a0aa15fe99f54499c93e383f294fba8591 100644 (file)
@@ -769,6 +769,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    997,
 /**/
     996,
 /**/