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.

project panel: Fix preview tabs not working when enabled (#20416)

Thorsten Balledb89d8d11a1
diff --git a/crates/project_panel/src/project_panel.rs b/crates/project_panel/src/project_panel.rs
index 4892a210686..d87df13a9ba 100644
--- a/crates/project_panel/src/project_panel.rs
+++ b/crates/project_panel/src/project_panel.rs
@@ -2665,7 +2665,7 @@ impl ProjectPanel {
entry_id,
cx.modifiers().secondary(),
!preview_tabs_enabled || click_count > 1,
- !preview_tabs_enabled && click_count == 1,
+ preview_tabs_enabled && click_count == 1,
cx,
);
}