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

patch 9.0.1080: the "kitty" terminfo entry is not widespread

Problem:    The "kitty" terminfo entry is not widespread, resulting in the
            kitty terminal not working properly.
Solution:   Go back to using "xterm-kitty" and avoid the problems it causes in
            another way.
This commit is contained in:
Bram Moolenaar
2022-12-19 18:56:48 +00:00
parent 33e543038b
commit afa3f1cc72
4 changed files with 33 additions and 36 deletions

View File

@@ -2353,6 +2353,8 @@ mch_restore_title(int which)
/*
* Return TRUE if "name" looks like some xterm name.
* This matches "xterm.*", thus "xterm-256color", "xterm-kitty", etc.
* Do not consider "xterm-kitty" an xterm, it is not fully xterm compatible,
* using the "xterm-kitty" terminfo entry should work better.
* Seiichi Sato mentioned that "mlterm" works like xterm.
*/
int
@@ -2360,7 +2362,8 @@ vim_is_xterm(char_u *name)
{
if (name == NULL)
return FALSE;
return (STRNICMP(name, "xterm", 5) == 0
return ((STRNICMP(name, "xterm", 5) == 0
&& STRNICMP(name, "xterm-kitty", 11) != 0)
|| STRNICMP(name, "nxterm", 6) == 0
|| STRNICMP(name, "kterm", 5) == 0
|| STRNICMP(name, "mlterm", 6) == 0