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.

Fix right click selection behavior in project panel (#21707)

tims2ce01ead93f9
diff --git a/crates/project_panel/src/project_panel.rs b/crates/project_panel/src/project_panel.rs
index 12c90e21954..7433d0599fe 100644
--- a/crates/project_panel/src/project_panel.rs
+++ b/crates/project_panel/src/project_panel.rs
@@ -3496,6 +3496,9 @@ impl ProjectPanel {
// Stop propagation to prevent the catch-all context menu for the project
// panel from being deployed.
cx.stop_propagation();
+ if !this.marked_entries.contains(&selection) {
+ this.marked_entries.clear();
+ }
this.deploy_context_menu(event.position, entry_id, cx);
},
))