diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-08-14 18:23:21 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-08-14 18:23:21 +0200 |
commit | e56132bb4167f8b6ea4814cc2c99a71df3d07ff8 (patch) | |
tree | bb093e0e56945639fee419104309e47b8b2ba5f7 /src/os_unix.c | |
parent | cff50f5ec9e8c8c8f69bdcb7fc17e0b9ced540e2 (diff) | |
download | vim-git-e56132bb4167f8b6ea4814cc2c99a71df3d07ff8.tar.gz |
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/os_unix.c')
-rw-r--r-- | src/os_unix.c | 6 |
1 files changed, 5 insertions, 1 deletions
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 |