Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix `Collapse All Files` button being limited to the current buffer (#50076)
0x2CAfc2d805ac816
diff --git a/crates/search/src/buffer_search.rs b/crates/search/src/buffer_search.rsindex 42b2344316e..6c0efcf9ea9 100644--- a/crates/search/src/buffer_search.rs+++ b/crates/search/src/buffer_search.rs@@ -18,7 +18,7 @@ use editor::{};use futures::channel::oneshot;use gpui::{- Action, App, ClickEvent, Context, Entity, EventEmitter, Focusable, InteractiveElement as _,+ App, ClickEvent, Context, Entity, EventEmitter, Focusable, InteractiveElement as _,IntoElement, KeyContext, ParentElement as _, Render, ScrollHandle, Styled, Subscription, Task,WeakEntity, Window, div,};@@ -245,9 +245,9 @@ impl Render for BufferSearchBar {cx,)})- .on_click(|_event, window, cx| {- window.dispatch_action(ToggleFoldAll.boxed_clone(), cx)- })+ .on_click(cx.listener(|this, _: &ClickEvent, window, cx| {+ this.toggle_fold_all(&ToggleFoldAll, window, cx);+ }))};if self.dismissed {