mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 11:28:22 +00:00
@@ -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)
|
||||||
|
@@ -1637,6 +1637,11 @@ static void patch_terminfo_bugs(TUIData *data, const char *term,
|
|||||||
// per the screen manual; 2017-04 terminfo.src lacks these.
|
// per the screen manual; 2017-04 terminfo.src lacks these.
|
||||||
unibi_set_if_empty(ut, unibi_to_status_line, "\x1b_");
|
unibi_set_if_empty(ut, unibi_to_status_line, "\x1b_");
|
||||||
unibi_set_if_empty(ut, unibi_from_status_line, "\x1b\\");
|
unibi_set_if_empty(ut, unibi_from_status_line, "\x1b\\");
|
||||||
|
// Fix an issue where smglr is inherited by TERM=screen.xterm.
|
||||||
|
if (unibi_get_str(ut, unibi_set_lr_margin)) {
|
||||||
|
ILOG("Disabling smglr with TERM=screen.xterm for screen.");
|
||||||
|
unibi_set_str(ut, unibi_set_lr_margin, NULL);
|
||||||
|
}
|
||||||
} else if (tmux) {
|
} else if (tmux) {
|
||||||
unibi_set_if_empty(ut, unibi_to_status_line, "\x1b_");
|
unibi_set_if_empty(ut, unibi_to_status_line, "\x1b_");
|
||||||
unibi_set_if_empty(ut, unibi_from_status_line, "\x1b\\");
|
unibi_set_if_empty(ut, unibi_from_status_line, "\x1b\\");
|
||||||
|
Reference in New Issue
Block a user