mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-05 18:25:57 +00:00
Check for wakeups correctly
This commit is contained in:
parent
93824dd239
commit
ce0dfde8ee
1 changed files with 5 additions and 4 deletions
|
@ -429,17 +429,18 @@ impl TerminalBuilder {
|
|||
}
|
||||
}
|
||||
|
||||
if events.is_empty() {
|
||||
if events.is_empty() && wakeup == false {
|
||||
smol::future::yield_now().await;
|
||||
break 'outer;
|
||||
} else {
|
||||
this.upgrade(&cx)?.update(&mut cx, |this, cx| {
|
||||
for event in events {
|
||||
this.process_event(&event, cx);
|
||||
}
|
||||
if wakeup {
|
||||
this.process_event(&AlacTermEvent::Wakeup, cx);
|
||||
}
|
||||
|
||||
for event in events {
|
||||
this.process_event(&event, cx);
|
||||
}
|
||||
});
|
||||
smol::future::yield_now().await;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue