From e56132bb4167f8b6ea4814cc2c99a71df3d07ff8 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 14 Aug 2016 18:23:21 +0200 Subject: [PATCH] patch 7.4.2211 Problem: Mouse support is not automatically enabled with simple term. Solution: Recognize "st" and other names. (Manuel Schiller, closes #963) --- src/os_unix.c | 6 +++++- src/version.c | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/os_unix.c b/src/os_unix.c index 9e5331821..78063704c 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 4c8ed6eaa..9be301f1d 100644 --- a/src/version.c +++ b/src/version.c @@ -763,6 +763,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 2211, /**/ 2210, /**/ -- 2.50.1