1
1
mirror of https://github.com/wez/wezterm.git synced 2024-08-16 17:50:28 +03:00

shotgun fix images not being correctly removed from lines (for demonstration)

Go through all cells removing the specified image. This could have
extremely bad performance for large scrollbacks and a lot of updating
images.
The PlacementInfo should be sufficient to just remove the image from the
relevant lines, but right now this PlacementInfo can become stale after
resizing, which seems to indicate a bug.
This commit is contained in:
jonboh 2024-02-11 10:38:39 +01:00
parent 81b3b69520
commit 319a5376e3

View File

@ -301,9 +301,7 @@ impl TerminalState {
) {
let seqno = self.seqno;
let screen = self.screen_mut();
let range =
screen.stable_range(&(info.first_row..info.first_row + info.rows as StableRowIndex));
for idx in range {
for idx in 0..screen.scrollback_rows() {
let line = screen.line_mut(idx);
for c in line.cells_mut() {
c.attrs_mut()