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.

Don't auto-close in search (#52553)

Conrad Irwin7d3ccce952bf
diff --git a/crates/search/src/project_search.rs b/crates/search/src/project_search.rs
index c72d7da34bb..991f8d1076a 100644
--- a/crates/search/src/project_search.rs
+++ b/crates/search/src/project_search.rs
@@ -936,6 +936,7 @@ impl ProjectSearchView {
let query_editor = cx.new(|cx| {
let mut editor = Editor::auto_height(1, 4, window, cx);
editor.set_placeholder_text("Search all files…", window, cx);
+ editor.set_use_autoclose(false);
editor.set_text(query_text, window, cx);
editor
});