Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Use proper terminal item for splitting context (#21415)
Kirill Bulatovdbe41823d9f5
diff --git a/crates/terminal_view/src/terminal_panel.rs b/crates/terminal_view/src/terminal_panel.rsindex 532d5d90400..b3804354c45 100644--- a/crates/terminal_view/src/terminal_panel.rs+++ b/crates/terminal_view/src/terminal_panel.rs@@ -131,8 +131,8 @@ impl TerminalPanel {terminal_pane.update(cx, |pane, cx| {pane.set_render_tab_bar_buttons(cx, move |pane, cx| {let split_context = pane- .items()- .find_map(|item| item.downcast::<TerminalView>())+ .active_item()+ .and_then(|item| item.downcast::<TerminalView>()).map(|terminal_view| terminal_view.read(cx).focus_handle.clone());if !pane.has_focus(cx) && !pane.context_menu_focused(cx) {return (None, None);