1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-24 22:01:47 +03:00

use Cell::reset to clear portions of a line

This commit is contained in:
Wez Furlong 2018-02-19 10:51:34 -08:00
parent a0b4630998
commit 02846f4c82

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();
}
}