fixup! terminal/search: Partially fix search in terminal. There are two issues with search in terminal as is: - terminal's pane is not registered as a "legit" pane, so we dispatch buffer search bar::Deploy on the most recent "legit" pane. By legit I mean that workspace::active_pane will *never* return terminal pane as active. - We've had the implementation of as_searchable commented out. Duh!

This commit is contained in:
Piotr Osiewicz
2024-01-05 00:10:23 +01:00
parent b3d8b23139
commit cd0b15e23d
+1 -1
View File
@@ -101,7 +101,7 @@ impl TerminalPanel {
})
.into_any_element()
});
let buffer_search_bar = cx.add_view(search::BufferSearchBar::new);
let buffer_search_bar = cx.new_view(search::BufferSearchBar::new);
pane.toolbar()
.update(cx, |toolbar, cx| toolbar.add_item(buffer_search_bar, cx));
pane