mirror of
https://github.com/wez/wezterm.git
synced 2024-12-24 05:42:03 +03:00
use Cell::reset to clear portions of a line
This commit is contained in:
parent
a0b4630998
commit
02846f4c82
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user