fix(terminal): resize() now resizes fixed viewports (#1353)

`Terminal::resize()` on a fixed viewport used to do nothing due to
an accidentally shadowed variable. This now works as intended.
This commit is contained in:
Patryk Wychowaniec 2024-09-04 20:28:30 +01:00 committed by GitHub
parent b13e2f9473
commit 0f48239778
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -219,7 +219,7 @@ where
)? )?
.0 .0
} }
Viewport::Fixed(area) => area, Viewport::Fixed(_) => area,
}; };
self.set_viewport_area(next_area); self.set_viewport_area(next_area);
self.clear()?; self.clear()?;