Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Improve `pane: reopen closed item` to not reopen closed tabs (#42568)
Andrew Farkas0c1ca2a45a2d
diff --git a/crates/workspace/src/pane.rs b/crates/workspace/src/pane.rsindex 3965aeb4211..1f950460299 100644--- a/crates/workspace/src/pane.rs+++ b/crates/workspace/src/pane.rs@@ -4116,6 +4116,7 @@ impl NavHistory {is_preview,});}+ NavigationMode::ClosingItem if is_preview => return,NavigationMode::ClosingItem => {if state.closed_stack.len() >= MAX_NAVIGATION_HISTORY_LEN {state.closed_stack.pop_front();