mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 06:28:35 +00:00
tui: update cleared area only if non-default bg
This check was removed in 133ae5eeef
without explanation.
This commit is contained in:
@@ -940,9 +940,10 @@ static void tui_scroll(UI *ui, Integer count)
|
||||
}
|
||||
cursor_goto(ui, saved_row, saved_col);
|
||||
|
||||
if (!scroll_clears_to_current_colour) {
|
||||
// This is required because scrolling will leave wrong background in the
|
||||
// cleared area on non-bge terminals.
|
||||
if (!scroll_clears_to_current_colour && grid->bg != -1) {
|
||||
// Scrolling may leave wrong background in the cleared area on non-bge
|
||||
// terminals. Update the cleared area of the terminal if its builtin
|
||||
// scrolling facility was used and bg color is not the default.
|
||||
clear_region(ui, clear_top, clear_bot, grid->left, grid->right);
|
||||
}
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user