Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Guard against tab_bar_context_menu

Petros Amoiridis2b0592da2137
diff --git a/crates/workspace/src/pane.rs b/crates/workspace/src/pane.rs
index 7e56b864bfa..cc1d8f0ad21 100644
--- a/crates/workspace/src/pane.rs
+++ b/crates/workspace/src/pane.rs
@@ -1527,7 +1527,7 @@ impl View for Pane {
}
cx.focus(active_item);
- } else {
+ } else if focused != self.tab_bar_context_menu {
self.last_focused_view_by_item
.insert(active_item.id(), focused.downgrade());
}