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.

Revert "Focus filters when enabled"

Piotr Osiewicz50d03ffc8c3b
diff --git a/crates/search/src/project_search.rs b/crates/search/src/project_search.rs
index 97edb1b1aa1..74635bf53c3 100644
--- a/crates/search/src/project_search.rs
+++ b/crates/search/src/project_search.rs
@@ -1507,11 +1507,6 @@ impl ProjectSearchBar {
if let Some(search_view) = self.active_project_search.as_ref() {
search_view.update(cx, |search_view, cx| {
search_view.filters_enabled = !search_view.filters_enabled;
- if search_view.filters_enabled {
- cx.focus(&search_view.included_files_editor);
- } else {
- cx.focus(&search_view.query_editor);
- }
search_view
.included_files_editor
.update(cx, |_, cx| cx.notify());