diff --git a/term/src/screen.rs b/term/src/screen.rs index 8d369cda3..f92426e37 100644 --- a/term/src/screen.rs +++ b/term/src/screen.rs @@ -126,7 +126,6 @@ impl Screen { } pub fn clear_line(&mut self, y: VisibleRowIndex, cols: std::ops::Range) { - let blank = Cell::default(); let line_idx = self.phys_row(y); let line = self.line_mut(line_idx); let max_col = line.cells.len(); @@ -134,7 +133,7 @@ impl Screen { if x >= max_col { break; } - line.cells[x] = blank.clone(); + line.cells[x].reset(); } }