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.

Fix the outline panel's focus tracking (#20083)

Kirill Bulatovc8f1969916ad
diff --git a/crates/outline_panel/src/outline_panel.rs b/crates/outline_panel/src/outline_panel.rs
index 7de8872c64d..a7708ec08fd 100644
--- a/crates/outline_panel/src/outline_panel.rs
+++ b/crates/outline_panel/src/outline_panel.rs
@@ -4261,7 +4261,7 @@ impl Render for OutlinePanel {
}
}),
)
- .track_focus(&self.focus_handle(cx))
+ .track_focus(&self.focus_handle)
.when_some(search_query, |outline_panel, search_state| {
outline_panel.child(
v_flex()