forked from aniani/vim
patch 7.4.2211
Problem: Mouse support is not automatically enabled with simple term. Solution: Recognize "st" and other names. (Manuel Schiller, closes #963)
This commit is contained in:
parent
cff50f5ec9
commit
e56132bb41
@ -2259,7 +2259,11 @@ vim_is_xterm(char_u *name)
|
|||||||
use_xterm_like_mouse(char_u *name)
|
use_xterm_like_mouse(char_u *name)
|
||||||
{
|
{
|
||||||
return (name != NULL
|
return (name != NULL
|
||||||
&& (term_is_xterm || STRNICMP(name, "screen", 6) == 0));
|
&& (term_is_xterm
|
||||||
|
|| STRNICMP(name, "screen", 6) == 0
|
||||||
|
|| STRICMP(name, "st") == 0
|
||||||
|
|| STRNICMP(name, "st-", 3) == 0
|
||||||
|
|| STRNICMP(name, "stterm", 6) == 0));
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -763,6 +763,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 */
|
||||||
|
/**/
|
||||||
|
2211,
|
||||||
/**/
|
/**/
|
||||||
2210,
|
2210,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user