Skip to content

Commit

Permalink
patch 8.1.0157: old iTerm2 is not recognized, resulting in stray output
Browse files Browse the repository at this point in the history
Problem:    Old iTerm2 is not recognized, resulting in stray output.
Solution:   Recognize the termresponse.
  • Loading branch information
brammool committed Jul 6, 2018
1 parent 5d2f407 commit e330ef4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/term.c
Original file line number Diff line number Diff line change
Expand Up @@ -4659,17 +4659,21 @@ check_termcode(

if (version == 95)
{
/* Mac Terminal.app sends 1;95;0 */
// Mac Terminal.app sends 1;95;0
if (STRNCMP(tp + extra - 2, "1;95;0c", 7) == 0)
{
is_not_xterm = TRUE;
is_mac_terminal = TRUE;
}
# ifdef FEAT_MOUSE_SGR
/* iTerm2 sends 0;95;0 */
// iTerm2 sends 0;95;0
if (STRNCMP(tp + extra - 2, "0;95;0c", 7) == 0)
is_iterm2 = TRUE;
else
# endif
// old iTerm2 sends 0;95;
if (STRNCMP(tp + extra - 2, "0;95;c", 6) == 0)
is_not_xterm = TRUE;
}

/* Only set 'ttymouse' automatically if it was not set
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -789,6 +789,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
157,
/**/
156,
/**/
Expand Down

0 comments on commit e330ef4

Please sign in to comment.