0
0
mirror of https://github.com/vim/vim.git synced 2025-09-28 04:24:06 -04:00

patch 9.0.0948: 'ttyfast' is set for arbitrary terminals

Problem:    'ttyfast' is set for arbitrary terminals.
Solution:   Always set 'ttyfast'. (closes #11549)
This commit is contained in:
Bram Moolenaar
2022-11-25 15:09:35 +00:00
parent cc762a48d4
commit c1cf4c9107
9 changed files with 22 additions and 54 deletions

View File

@@ -2437,24 +2437,6 @@ vim_is_vt300(char_u *name)
|| STRCMP(name, "builtin_vt320") == 0);
}
/*
* Return TRUE if "name" is a terminal for which 'ttyfast' should be set.
* This should include all windowed terminal emulators.
*/
int
vim_is_fastterm(char_u *name)
{
if (name == NULL)
return FALSE;
if (vim_is_xterm(name) || vim_is_vt300(name) || vim_is_iris(name))
return TRUE;
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);
}
/*
* Insert user name in s[len].
* Return OK if a name found.