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.

When revealing items, zoom-out any inactive panes

Max Brunsfeldc48fed26bdeb
diff --git a/crates/workspace/src/workspace.rs b/crates/workspace/src/workspace.rs
index 1b2fdc80f4e..3d55a78e88e 100644
--- a/crates/workspace/src/workspace.rs
+++ b/crates/workspace/src/workspace.rs
@@ -1705,8 +1705,8 @@ impl Workspace {
cx: &mut ViewContext<Self>,
) {
// If a center pane is zoomed, unzoom it.
- if except_position.is_some() {
- for pane in &self.panes {
+ for pane in &self.panes {
+ if pane != &self.active_pane {
pane.update(cx, |pane, cx| pane.set_zoomed(false, cx));
}
}