mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	Fix screen terminal family issues
This commit is contained in:
		| @@ -31,7 +31,10 @@ bool terminfo_is_term_family(const char *term, const char *family) | |||||||
|   return tlen >= flen |   return tlen >= flen | ||||||
|     && 0 == memcmp(term, family, flen) |     && 0 == memcmp(term, family, flen) | ||||||
|     // Per commentary in terminfo, minus is the only valid suffix separator. |     // Per commentary in terminfo, minus is the only valid suffix separator. | ||||||
|     && ('\0' == term[flen] || '-' == term[flen]); |     // The screen terminfo may have a terminal name like screen.xterm. By making | ||||||
|  |     // the dot(.) a valid separator, such terminal names will also be the | ||||||
|  |     // terminal family of the screen. | ||||||
|  |     && ('\0' == term[flen] || '-' == term[flen] || '.' == term[flen]); | ||||||
| } | } | ||||||
|  |  | ||||||
| bool terminfo_is_bsd_console(const char *term) | bool terminfo_is_bsd_console(const char *term) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 erw7
					erw7