Mercurial > vim
changeset 9873:043b7a9579e6 v7.4.2211
commit https://github.com/vim/vim/commit/e56132bb4167f8b6ea4814cc2c99a71df3d07ff8
Author: Bram Moolenaar <Bram@vim.org>
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)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 14 Aug 2016 18:30:06 +0200 |
parents | e41c72cb16e5 |
children | f49646062d35 |
files | src/os_unix.c src/version.c |
diffstat | 2 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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