aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/term/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/term/mod.rs b/src/term/mod.rs
index 4ee685b1..44fa9e33 100644
--- a/src/term/mod.rs
+++ b/src/term/mod.rs
@@ -1374,7 +1374,7 @@ impl ansi::Handler for Term {
#[inline]
fn clear_line(&mut self, mode: ansi::LineClearMode) {
trace!("clear_line: {:?}", mode);
- let template = self.empty_cell;
+ let template = self.cursor.template;
let col = self.cursor.point.col;
match mode {
@@ -1412,7 +1412,7 @@ impl ansi::Handler for Term {
#[inline]
fn clear_screen(&mut self, mode: ansi::ClearMode) {
trace!("clear_screen: {:?}", mode);
- let template = self.empty_cell;
+ let template = self.cursor.template;
match mode {
ansi::ClearMode::Below => {
for cell in &mut self.grid[self.cursor.point.line][self.cursor.point.col..] {