Skip to content

Commit

Permalink
Use proper terminal item for splitting context (#21415)
Browse files Browse the repository at this point in the history
Closes #21411

Release Notes:

- N/A
  • Loading branch information
SomeoneToIgnore authored Dec 2, 2024
1 parent 7c40824 commit dbe4182
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/terminal_view/src/terminal_panel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit dbe4182

Please sign in to comment.