forked from aniani/vim
patch 8.0.0030
Problem: Mouse mode is not automatically detected for tmux. Solution: Check for 'term' to be "tmux". (Michael Henry)
This commit is contained in:
@@ -2261,6 +2261,7 @@ use_xterm_like_mouse(char_u *name)
|
|||||||
return (name != NULL
|
return (name != NULL
|
||||||
&& (term_is_xterm
|
&& (term_is_xterm
|
||||||
|| STRNICMP(name, "screen", 6) == 0
|
|| STRNICMP(name, "screen", 6) == 0
|
||||||
|
|| STRNICMP(name, "tmux", 4) == 0
|
||||||
|| STRICMP(name, "st") == 0
|
|| STRICMP(name, "st") == 0
|
||||||
|| STRNICMP(name, "st-", 3) == 0
|
|| STRNICMP(name, "st-", 3) == 0
|
||||||
|| STRNICMP(name, "stterm", 6) == 0));
|
|| STRNICMP(name, "stterm", 6) == 0));
|
||||||
@@ -2324,6 +2325,7 @@ vim_is_fastterm(char_u *name)
|
|||||||
return ( STRNICMP(name, "hpterm", 6) == 0
|
return ( STRNICMP(name, "hpterm", 6) == 0
|
||||||
|| STRNICMP(name, "sun-cmd", 7) == 0
|
|| STRNICMP(name, "sun-cmd", 7) == 0
|
||||||
|| STRNICMP(name, "screen", 6) == 0
|
|| STRNICMP(name, "screen", 6) == 0
|
||||||
|
|| STRNICMP(name, "tmux", 4) == 0
|
||||||
|| STRNICMP(name, "dtterm", 6) == 0);
|
|| STRNICMP(name, "dtterm", 6) == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -764,6 +764,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
30,
|
||||||
/**/
|
/**/
|
||||||
29,
|
29,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user