Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix buffer search focus not working
Kirill Bulatovaacb17ef3804
diff --git a/crates/search/src/buffer_search.rs b/crates/search/src/buffer_search.rsindex a1f0d9773be..f4c9f7ef0f4 100644--- a/crates/search/src/buffer_search.rs+++ b/crates/search/src/buffer_search.rs@@ -638,6 +638,12 @@ impl BufferSearchBar {registrar.register_handler(|this, _: &editor::actions::Cancel, cx| {this.dismiss(&Dismiss, cx);});++ // register deploy buffer search for both search bar states, since we want to focus into the search bar+ // when the deploy action is triggered in the buffer.+ registrar.register_handler(|this, deploy, cx| {+ this.deploy(deploy, cx);+ });registrar.register_handler_for_dismissed_search(|this, deploy, cx| {this.deploy(deploy, cx);})