Permalink
Browse files

patch 7.4.2211

Problem:    Mouse support is not automatically enabled with simple term.
Solution:   Recognize "st" and other names. (Manuel Schiller, closes #963)
  • Loading branch information...
1 parent cff50f5 commit e56132bb4167f8b6ea4814cc2c99a71df3d07ff8 @brammool brammool committed Aug 14, 2016
Showing with 7 additions and 1 deletion.
  1. +5 −1 src/os_unix.c
  2. +2 −0 src/version.c
View
@@ -2259,7 +2259,11 @@ vim_is_xterm(char_u *name)
use_xterm_like_mouse(char_u *name)
{
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
View
@@ -764,6 +764,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 2211,
+/**/
2210,
/**/
2209,

0 comments on commit e56132b

Please sign in to comment.