From de2483e13267695e74880cad54b273aed5b4a4a0 Mon Sep 17 00:00:00 2001 From: Marc Date: Mon, 4 Nov 2024 09:19:48 +0100 Subject: [PATCH] terminal: Do not show multibuffer hint when in centered pane (#20137) Co-Authored-by: Bennet ![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 --- crates/terminal_view/src/terminal_view.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/terminal_view/src/terminal_view.rs b/crates/terminal_view/src/terminal_view.rs index d192680968..6bd1496c97 100644 --- a/crates/terminal_view/src/terminal_view.rs +++ b/crates/terminal_view/src/terminal_view.rs @@ -1131,6 +1131,10 @@ impl Item for TerminalView { false } + fn is_singleton(&self, _cx: &AppContext) -> bool { + true + } + fn as_searchable(&self, handle: &View) -> Option> { Some(Box::new(handle.clone())) }