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

@ -51,10 +51,10 @@ fn draw(f: &mut Frame) {
fn render_frame(term: &mut Terminal) {
let mut dirty = true;
while dirty {
dirty = term.measure_widths().unwrap();
term.autoresize().unwrap();
draw(term.frame());
term.present().unwrap();
dirty = term.measure_widths().unwrap();
}
}