summaryrefslogtreecommitdiffstats
path: root/src/os_unix.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2004-09-02 19:12:26 +0000
committerBram Moolenaar <Bram@vim.org>2004-09-02 19:12:26 +0000
commitd4755bb0e04fca334675f1503bd6474b017a9bba (patch)
tree8be8df859191e78ee9eef80d3b341fd5d0c1b81b /src/os_unix.c
parent269ec658f0fad22b2bf9f71b06a4e6e10277f0e5 (diff)
updated for version 7.0014
Diffstat (limited to 'src/os_unix.c')
-rw-r--r--src/os_unix.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/os_unix.c b/src/os_unix.c
index 08276456b6..24c86b2619 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -1954,9 +1954,9 @@ vim_is_vt300(name)
{
if (name == NULL)
return FALSE; /* actually all ANSI comp. terminals should be here */
- return (STRNICMP(name, "vt3", 3) == 0 /* it will cover all from VT100-VT300 */
- || STRNICMP(name, "vt2", 3) == 0 /* TODO: from VT340 can hanle colors */
- || STRNICMP(name, "vt1", 3) == 0
+ /* catch VT100 - VT5xx */
+ return ((STRNICMP(name, "vt", 2) == 0
+ && vim_strchr((char_u *)"12345", name[2]) != NULL)
|| STRCMP(name, "builtin_vt320") == 0);
}