mirror of
https://github.com/wez/wezterm.git
synced 2024-12-24 22:01:47 +03:00
termwiz: shrink-to-fit Line::cells when clearing the line
refs: https://github.com/wez/wezterm/issues/534
This commit is contained in:
parent
f4105cb42f
commit
868a085157
@ -76,6 +76,7 @@ impl Line {
|
|||||||
let blank = Cell::default();
|
let blank = Cell::default();
|
||||||
self.cells.clear();
|
self.cells.clear();
|
||||||
self.cells.resize(width, blank);
|
self.cells.resize(width, blank);
|
||||||
|
self.cells.shrink_to_fit();
|
||||||
self.bits = LineBits::DIRTY;
|
self.bits = LineBits::DIRTY;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user