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.

Allow to input spaces in the outline panel filter input (#14951)

Kirill Bulatov31d283932cca
diff --git a/crates/outline_panel/src/outline_panel.rs b/crates/outline_panel/src/outline_panel.rs
index 586a1d57915..5ce4d4f8012 100644
--- a/crates/outline_panel/src/outline_panel.rs
+++ b/crates/outline_panel/src/outline_panel.rs
@@ -457,7 +457,9 @@ impl OutlinePanel {
}
fn open(&mut self, _: &Open, cx: &mut ViewContext<Self>) {
- if let Some(selected_entry) = self.selected_entry.clone() {
+ if self.filter_editor.focus_handle(cx).is_focused(cx) {
+ cx.propagate()
+ } else if let Some(selected_entry) = self.selected_entry.clone() {
self.open_entry(&selected_entry, cx);
}
}