# HG changeset patch # User Christian Brabandt # Date 1471192206 -7200 # Node ID 043b7a9579e601a8934dcb3e50d422a828911f6e # Parent e41c72cb16e560e0923f2cd8745476d93cae9f9f commit https://github.com/vim/vim/commit/e56132bb4167f8b6ea4814cc2c99a71df3d07ff8 Author: Bram Moolenaar Date: Sun Aug 14 18:23:21 2016 +0200 patch 7.4.2211 Problem: Mouse support is not automatically enabled with simple term. Solution: Recognize "st" and other names. (Manuel Schiller, closes https://github.com/vim/vim/issues/963) diff --git a/src/os_unix.c b/src/os_unix.c --- 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 --- 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,