terminal: Do not show multibuffer hint when in centered pane (#20137)

Co-Authored-by: Bennet <bennet@zed.dev>


![image](https://github.com/user-attachments/assets/581f493e-aa9b-4767-8029-6ab83755336b)

Release Notes:

- Fixed an issue where the multibuffer hint was shown when terminal was
in centered mode

Co-authored-by: Bennet <bennet@zed.dev>
This commit is contained in:
Marc 2024-11-04 09:19:48 +01:00 committed by GitHub
parent 95259bf9fe
commit de2483e132
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1131,6 +1131,10 @@ impl Item for TerminalView {
false
}
fn is_singleton(&self, _cx: &AppContext) -> bool {
true
}
fn as_searchable(&self, handle: &View<Self>) -> Option<Box<dyn SearchableItemHandle>> {
Some(Box::new(handle.clone()))
}