mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 7.4.2211
Problem: Mouse support is not automatically enabled with simple term. Solution: Recognize "st" and other names. (Manuel Schiller, closes #963)
This commit is contained in:
@@ -2259,7 +2259,11 @@ vim_is_xterm(char_u *name)
|
||||
use_xterm_like_mouse(char_u *name)
|
||||
{
|
||||
return (name != NULL
|
||||
&& (term_is_xterm || STRNICMP(name, "screen", 6) == 0));
|
||||
&& (term_is_xterm
|
||||
|| STRNICMP(name, "screen", 6) == 0
|
||||
|| STRICMP(name, "st") == 0
|
||||
|| STRNICMP(name, "st-", 3) == 0
|
||||
|| STRNICMP(name, "stterm", 6) == 0));
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user