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 drop highlight is not being removed when `esc` is pressed (#32115)

Smit Barmase7c64737e0054
diff --git a/crates/project_panel/src/project_panel.rs b/crates/project_panel/src/project_panel.rs
index 35cc78b71cc..1a3d07ef49a 100644
--- a/crates/project_panel/src/project_panel.rs
+++ b/crates/project_panel/src/project_panel.rs
@@ -1383,6 +1383,8 @@ impl ProjectPanel {
fn cancel(&mut self, _: &menu::Cancel, window: &mut Window, cx: &mut Context<Self>) {
if cx.stop_active_drag(window) {
+ self.drag_target_entry.take();
+ self.hover_expand_task.take();
return;
}