aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-11-29 23:41:41 +0100
committerJustin M. Keyes <justinkz@gmail.com>2017-11-29 23:51:48 +0100
commit4618c9c43b2fe052332329b347ac10b4b1db94b5 (patch)
treedbc072b241444ba6f18f5da3c66ccb3ff4943630 /src
parente0466dc5925dbe9c47c9b7aebbe8fe55767dd008 (diff)
downloadrneovim-4618c9c43b2fe052332329b347ac10b4b1db94b5.tar.gz
rneovim-4618c9c43b2fe052332329b347ac10b4b1db94b5.tar.bz2
rneovim-4618c9c43b2fe052332329b347ac10b4b1db94b5.zip
Revert "tui: update cleared area only if non-default bg"
Reverts 0b93bab6c22edf7a07cf965ebbbf631b93e1dc1b. This change was counter-productive to the other changes which intended to reduce the role of BCE. ref #7624
Diffstat (limited to 'src')
-rw-r--r--src/nvim/tui/tui.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/nvim/tui/tui.c b/src/nvim/tui/tui.c
index 732a86d0fb..724d59b15a 100644
--- a/src/nvim/tui/tui.c
+++ b/src/nvim/tui/tui.c
@@ -956,10 +956,9 @@ static void tui_scroll(UI *ui, Integer count)
}
cursor_goto(ui, saved_row, saved_col);
- 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.
+ if (!scroll_clears_to_current_colour) {
+ // Scrolling will leave wrong background in the cleared area on non-BCE
+ // terminals. Update the cleared area.
clear_region(ui, clear_top, clear_bot, grid->left, grid->right);
}
} else {