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:
parent
b3d8b23139
commit
cd0b15e23d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue