Permalink
Browse files

patch 8.0.0997

Problem:    Libvterm and Terminal.app not regognized from termresponse.
Solution:   Adjust string compare.
  • Loading branch information...
brammool committed Aug 26, 2017
1 parent 833e0e3 commit e92246039475e504d7a05c27c81997d3700c7862
Showing with 4 additions and 2 deletions.
  1. +2 −2 src/term.c
  2. +2 −0 src/version.c
View
@@ -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. */
View
@@ -769,6 +769,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
997,
/**/
996,
/**/

0 comments on commit e922460

Please sign in to comment.