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.

`workspace::Open`: Fix trapped cursor/selection on update (#25402)

5brian15d2420031c3
diff --git a/crates/file_finder/src/open_path_prompt.rs b/crates/file_finder/src/open_path_prompt.rs
index b778328cfbe..aeb774176d7 100644
--- a/crates/file_finder/src/open_path_prompt.rs
+++ b/crates/file_finder/src/open_path_prompt.rs
@@ -266,6 +266,7 @@ impl PickerDelegate for OpenPathDelegate {
*m,
)
});
+ this.delegate.selected_index = 0;
cx.notify();
})
.ok();