summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-08-26 15:29:47 +0200
committerBram Moolenaar <Bram@vim.org>2017-08-26 15:29:47 +0200
commite92246039475e504d7a05c27c81997d3700c7862 (patch)
tree6de70924484f8697336c37cad748e18c32f547cf
parent833e0e3c8ccd6047dd596c4ffd68cb0ab13b4e41 (diff)
downloadvim-git-e92246039475e504d7a05c27c81997d3700c7862.tar.gz
patch 8.0.0997v8.0.0997
Problem: Libvterm and Terminal.app not regognized from termresponse. Solution: Adjust string compare.
-rw-r--r--src/term.c4
-rw-r--r--src/version.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/src/term.c b/src/term.c
index 716c89cf8..b9594d5fc 100644
--- a/src/term.c
+++ b/src/term.c
@@ -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. */
diff --git a/src/version.c b/src/version.c
index 430ac8bc7..d2f728a0a 100644
--- a/src/version.c
+++ b/src/version.c
@@ -770,6 +770,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 997,
+/**/
996,
/**/
995,