Created
February 1, 2015 12:50
-
-
Save saitoha/dd656291153a815e0a2b to your computer and use it in GitHub Desktop.
vim: support non-bce mlterm (launched with option --term=mlterm).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -r 930ad67c0414 src/os_unix.c | |
--- a/src/os_unix.c Tue Jan 27 14:09:37 2015 +0100 | |
+++ b/src/os_unix.c Sun Feb 01 21:48:34 2015 +0900 | |
@@ -2223,7 +2223,6 @@ | |
/* | |
* Return TRUE if "name" looks like some xterm name. | |
- * Seiichi Sato mentioned that "mlterm" works like xterm. | |
*/ | |
int | |
vim_is_xterm(name) | |
@@ -2234,7 +2233,6 @@ | |
return (STRNICMP(name, "xterm", 5) == 0 | |
|| STRNICMP(name, "nxterm", 6) == 0 | |
|| STRNICMP(name, "kterm", 5) == 0 | |
- || STRNICMP(name, "mlterm", 6) == 0 | |
|| STRNICMP(name, "rxvt", 4) == 0 | |
|| STRCMP(name, "builtin_xterm") == 0); | |
} | |
@@ -2250,7 +2248,9 @@ | |
char_u *name; | |
{ | |
return (name != NULL | |
- && (term_is_xterm || STRNICMP(name, "screen", 6) == 0)); | |
+ && (term_is_xterm | |
+ || STRNICMP(name, "screen", 6) == 0 | |
+ || STRNICMP(name, "mlterm", 6) == 0)); | |
} | |
#endif | |
@@ -2314,6 +2314,7 @@ | |
return ( STRNICMP(name, "hpterm", 6) == 0 | |
|| STRNICMP(name, "sun-cmd", 7) == 0 | |
|| STRNICMP(name, "screen", 6) == 0 | |
+ || STRNICMP(name, "mlterm", 6) == 0 | |
|| STRNICMP(name, "dtterm", 6) == 0); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment