Skip to content

Commit dbe4182

Browse files
Use proper terminal item for splitting context (#21415)
Closes #21411 Release Notes: - N/A
1 parent 7c40824 commit dbe4182

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/terminal_view/src/terminal_panel.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ impl TerminalPanel {
131131
terminal_pane.update(cx, |pane, cx| {
132132
pane.set_render_tab_bar_buttons(cx, move |pane, cx| {
133133
let split_context = pane
134-
.items()
135-
.find_map(|item| item.downcast::<TerminalView>())
134+
.active_item()
135+
.and_then(|item| item.downcast::<TerminalView>())
136136
.map(|terminal_view| terminal_view.read(cx).focus_handle.clone());
137137
if !pane.has_focus(cx) && !pane.context_menu_focused(cx) {
138138
return (None, None);

0 commit comments

Comments
 (0)