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