use Cell::reset to clear portions of a line

This commit is contained in:
Wez Furlong committed 2018-02-19 10:51:34 -08:00
1 parent a0b4630998
commit 02846f4c82
1 file changed
+1 -2
+1 -2
View File
@@ -126,7 +126,6 @@ impl Screen {
}
pub fn clear_line(&mut self, y: VisibleRowIndex, cols: std::ops::Range<usize>) {
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();
}
}