summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-08-14 18:23:21 +0200
committerBram Moolenaar <Bram@vim.org>2016-08-14 18:23:21 +0200
commite56132bb4167f8b6ea4814cc2c99a71df3d07ff8 (patch)
treebb093e0e56945639fee419104309e47b8b2ba5f7 /src
parentcff50f5ec9e8c8c8f69bdcb7fc17e0b9ced540e2 (diff)
patch 7.4.2211v7.4.2211
Problem: Mouse support is not automatically enabled with simple term. Solution: Recognize "st" and other names. (Manuel Schiller, closes #963)
Diffstat (limited to 'src')
-rw-r--r--src/os_unix.c6
-rw-r--r--src/version.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/src/os_unix.c b/src/os_unix.c
index 9e5331821e..78063704ca 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -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
diff --git a/src/version.c b/src/version.c
index 4c8ed6eaad..9be301f1d4 100644
--- a/src/version.c
+++ b/src/version.c
@@ -764,6 +764,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 2211,
+/**/
2210,
/**/
2209,