Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Disable auto-close in search (#35005)
Conrad Irwin34bf6ebba68c
diff --git a/crates/search/src/buffer_search.rs b/crates/search/src/buffer_search.rsindex c2590ec9b04..91b7fe488ef 100644--- a/crates/search/src/buffer_search.rs+++ b/crates/search/src/buffer_search.rs@@ -700,7 +700,11 @@ impl BufferSearchBar {window: &mut Window,cx: &mut Context<Self>,) -> Self {- let query_editor = cx.new(|cx| Editor::single_line(window, cx));+ let query_editor = cx.new(|cx| {+ let mut editor = Editor::single_line(window, cx);+ editor.set_use_autoclose(false);+ editor+ });cx.subscribe_in(&query_editor, window, Self::on_query_editor_event).detach();let replacement_editor = cx.new(|cx| Editor::single_line(window, cx));