aboutsummaryrefslogtreecommitdiff
path: root/src/term
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2018-04-02 08:44:54 -0700
committerJoe Wilm <joe@jwilm.com>2018-06-02 09:56:50 -0700
commitb19045da66899999856c6b2cc6707b60c607660a (patch)
tree79e3ebe269f3122b762fe940173a2e1a56eccf38 /src/term
parentf66e3e457bdda808cc3f994a02fd6f7ce5ba381e (diff)
downloadalacritty-b19045da66899999856c6b2cc6707b60c607660a.tar.gz
alacritty-b19045da66899999856c6b2cc6707b60c607660a.zip
Fix BCE ref tests
BCE was broken in attempt to optimize row clearing. The fix is to revert to passing in the current cursor state when clearing.
Diffstat (limited to 'src/term')
-rw-r--r--src/term/mod.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/term/mod.rs b/src/term/mod.rs
index 7a50810e..f66753d9 100644
--- a/src/term/mod.rs
+++ b/src/term/mod.rs
@@ -1119,19 +1119,19 @@ impl Term {
// Scroll up to keep cursor in terminal
if self.cursor.point.line >= num_lines {
let lines = self.cursor.point.line - num_lines + 1;
- self.grid.scroll_up(&(Line(0)..old_lines), lines);
+ self.grid.scroll_up(&(Line(0)..old_lines), lines, &self.cursor.template);
}
// Scroll up alt grid as well
if self.cursor_save_alt.point.line >= num_lines {
let lines = self.cursor_save_alt.point.line - num_lines + 1;
- self.alt_grid.scroll_up(&(Line(0)..old_lines), lines);
+ self.alt_grid.scroll_up(&(Line(0)..old_lines), lines, &self.cursor_save_alt.template);
}
debug!("num_cols, num_lines = {}, {}", num_cols, num_lines);
// Resize grids to new size
- self.grid.resize(num_lines, num_cols);
- self.alt_grid.resize(num_lines, num_cols);
+ self.grid.resize(num_lines, num_cols, &self.cursor.template);
+ self.alt_grid.resize(num_lines, num_cols, &self.cursor_save_alt.template);
// Reset scrolling region to new size
self.scroll_region = Line(0)..self.grid.num_lines();
@@ -1197,7 +1197,7 @@ impl Term {
let lines = min(lines, self.scroll_region.end - self.scroll_region.start);
// Scroll between origin and bottom
- self.grid.scroll_down(&(origin..self.scroll_region.end), lines);
+ self.grid.scroll_down(&(origin..self.scroll_region.end), lines, &self.cursor.template);
}
/// Scroll screen up
@@ -1210,7 +1210,7 @@ impl Term {
let lines = min(lines, self.scroll_region.end - self.scroll_region.start);
// Scroll from origin to bottom less number of lines
- self.grid.scroll_up(&(origin..self.scroll_region.end), lines);
+ self.grid.scroll_up(&(origin..self.scroll_region.end), lines, &self.cursor.template);
}
fn deccolm(&mut self) {