Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
calls: Fix off by one in prompts for leaving a call. (#3649)
Piotr Osiewiczda960fffe716
diff --git a/crates/workspace2/src/workspace2.rs b/crates/workspace2/src/workspace2.rsindex 629e151372f..a07c5818a0d 100644--- a/crates/workspace2/src/workspace2.rs+++ b/crates/workspace2/src/workspace2.rs@@ -1145,7 +1145,7 @@ impl Workspace {let window = cx.window_handle();cx.spawn(|this, mut cx| async move {- let workspace_count = cx.update(|_, cx| {+ let workspace_count = (*cx).update(|cx| {cx.windows().iter().filter(|window| window.downcast::<Workspace>().is_some())