]> granicus.if.org Git - vim/commitdiff
patch 7.4.2211 v7.4.2211
authorBram Moolenaar <Bram@vim.org>
Sun, 14 Aug 2016 16:23:21 +0000 (18:23 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 14 Aug 2016 16:23:21 +0000 (18:23 +0200)
Problem:    Mouse support is not automatically enabled with simple term.
Solution:   Recognize "st" and other names. (Manuel Schiller, closes #963)

src/os_unix.c
src/version.c

index 9e5331821e8b3d204674fc564a2b376af8f52680..78063704cab1e722b091101c6e3a6566c340e791 100644 (file)
@@ -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
 
index 4c8ed6eaad36bf0374cfb3de41607362445275d1..9be301f1d4d637ad5ae7bc6636ce995dce8f5ca5 100644 (file)
@@ -763,6 +763,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2211,
 /**/
     2210,
 /**/