Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Check for wakeups correctly
Mikayla Makice0dfde8ee90
diff --git a/crates/terminal/src/terminal.rs b/crates/terminal/src/terminal.rsindex 8b5b20e81e7..7e469e19fec 100644--- a/crates/terminal/src/terminal.rs+++ b/crates/terminal/src/terminal.rs@@ -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;}