Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Revert "Changed cmd+w with no open tabs to close window (#10740)" (#10986)
Marshall Bowers0de2636324c8
diff --git a/crates/workspace/src/pane.rs b/crates/workspace/src/pane.rsindex ddc81a3e121..c9027f2c908 100644--- a/crates/workspace/src/pane.rs+++ b/crates/workspace/src/pane.rs@@ -5,7 +5,7 @@ use crate::{},toolbar::Toolbar,workspace_settings::{AutosaveSetting, TabBarSettings, WorkspaceSettings},- CloseWindow, NewCenterTerminal, NewFile, NewSearch, OpenInTerminal, OpenTerminal, OpenVisible,+ NewCenterTerminal, NewFile, NewSearch, OpenInTerminal, OpenTerminal, OpenVisible,SplitDirection, ToggleZoom, Workspace,};use anyhow::Result;@@ -879,8 +879,6 @@ impl Pane {cx: &mut ViewContext<Self>,) -> Option<Task<Result<()>>> {if self.items.is_empty() {- // Close the window when there's no active items to close.- cx.dispatch_action(Box::new(CloseWindow));return None;}let active_item_id = self.items[self.active_item_index].item_id();