patch 8.0.0030 v8.0.0030
authorBram Moolenaar <Bram@vim.org>
Wed, 12 Oct 2016 12:50:54 +0000 (14:50 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 12 Oct 2016 12:50:54 +0000 (14:50 +0200)
Problem:    Mouse mode is not automatically detected for tmux.
Solution:   Check for 'term' to be "tmux". (Michael Henry)

src/os_unix.c
src/version.c

index 107a474820be4a4c2480ef26ffa66286d9916a39..8b0dd552d15a6fc778b101ee8613acbc2e618f9e 100644 (file)
@@ -2261,6 +2261,7 @@ use_xterm_like_mouse(char_u *name)
     return (name != NULL
            && (term_is_xterm
                || STRNICMP(name, "screen", 6) == 0
+               || STRNICMP(name, "tmux", 4) == 0
                || STRICMP(name, "st") == 0
                || STRNICMP(name, "st-", 3) == 0
                || STRNICMP(name, "stterm", 6) == 0));
@@ -2324,6 +2325,7 @@ vim_is_fastterm(char_u *name)
     return (   STRNICMP(name, "hpterm", 6) == 0
            || STRNICMP(name, "sun-cmd", 7) == 0
            || STRNICMP(name, "screen", 6) == 0
+           || STRNICMP(name, "tmux", 4) == 0
            || STRNICMP(name, "dtterm", 6) == 0);
 }
 
index b6bad041bf7d12f50f2b761af49b64c9d9579b51..07b3da794f71f82542a89e6c0335045e450d5b1a 100644 (file)
@@ -764,6 +764,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    30,
 /**/
     29,
 /**/