1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-24 05:42:03 +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:
Wez Furlong 2021-03-13 08:25:09 -08:00
parent f4105cb42f
commit 868a085157

View File

@ -76,6 +76,7 @@ impl Line {
let blank = Cell::default();
self.cells.clear();
self.cells.resize(width, blank);
self.cells.shrink_to_fit();
self.bits = LineBits::DIRTY;
}