mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
TUI: use BCE again more often, as it provides smoother resizes and scrolling
add exceptions for terminals we know doesn't support BCE
This commit is contained in:
parent
5fad02c081
commit
5a0d0286ff
@ -1394,6 +1394,7 @@ static void patch_terminfo_bugs(TUIData *data, const char *term,
|
||||
bool roxterm = !!os_getenv("ROXTERM_ID");
|
||||
#endif
|
||||
bool xterm = terminfo_is_term_family(term, "xterm");
|
||||
bool kitty = terminfo_is_term_family(term, "xterm-kitty");
|
||||
bool linuxvt = terminfo_is_term_family(term, "linux");
|
||||
bool rxvt = terminfo_is_term_family(term, "rxvt");
|
||||
bool teraterm = terminfo_is_term_family(term, "teraterm");
|
||||
@ -1449,8 +1450,8 @@ static void patch_terminfo_bugs(TUIData *data, const char *term,
|
||||
}
|
||||
}
|
||||
|
||||
if (!true_xterm) {
|
||||
// Cannot trust terminfo; safer to disable BCE. #7624
|
||||
if (tmux || screen || kitty) {
|
||||
// Disable BCE in some cases we know it is not working. #8806
|
||||
unibi_set_bool(ut, unibi_back_color_erase, false);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user