Use flag to determine when terminal needs update, only update once before draw
This commit is contained in:
parent
bb0d11180d
commit
556c32e33f
3 changed files with 22 additions and 4 deletions
|
|
@ -666,7 +666,7 @@ impl Application for App {
|
|||
TermEvent::MouseCursorDirty | TermEvent::Wakeup => {
|
||||
if let Some(terminal) = self.tab_model.data::<Mutex<Terminal>>(entity) {
|
||||
let mut terminal = terminal.lock().unwrap();
|
||||
terminal.update();
|
||||
terminal.needs_update = true;
|
||||
}
|
||||
}
|
||||
_ => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue