We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c40824 commit dbe4182Copy full SHA for dbe4182
crates/terminal_view/src/terminal_panel.rs
@@ -131,8 +131,8 @@ impl TerminalPanel {
131
terminal_pane.update(cx, |pane, cx| {
132
pane.set_render_tab_bar_buttons(cx, move |pane, cx| {
133
let split_context = pane
134
- .items()
135
- .find_map(|item| item.downcast::<TerminalView>())
+ .active_item()
+ .and_then(|item| item.downcast::<TerminalView>())
136
.map(|terminal_view| terminal_view.read(cx).focus_handle.clone());
137
if !pane.has_focus(cx) && !pane.context_menu_focused(cx) {
138
return (None, None);
0 commit comments