Fix examples not measuring widths immediately
This commit is contained in:
parent
3fb3a7b92b
commit
ba716dd089
4 changed files with 4 additions and 4 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue