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.

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

Marcde2483e13267
diff --git a/crates/terminal_view/src/terminal_view.rs b/crates/terminal_view/src/terminal_view.rs
index d192680968f..6bd1496c974 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<Self>) -> Option<Box<dyn SearchableItemHandle>> {
Some(Box::new(handle.clone()))
}