Fix examples not measuring widths immediately

This commit is contained in:
Joscha 2023-02-18 20:13:47 +01:00
parent 3fb3a7b92b
commit ba716dd089
4 changed files with 4 additions and 4 deletions

View file

@ -24,8 +24,8 @@ fn widget() -> impl Widget<io::Error> {
fn render_frame(term: &mut Terminal) {
let mut dirty = true;
while dirty {
dirty = term.measure_widths().unwrap();
term.present_widget(widget()).unwrap();
dirty = term.measure_widths().unwrap();
}
}