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.

Allow `workspace::ActivatePaneInDirection` to navigate out of the terminal panel (#21313)

Haru Kimeadb10733934
diff --git a/crates/terminal_view/src/terminal_panel.rs b/crates/terminal_view/src/terminal_panel.rs
index 1bc8a9e19b0..1799d24c7db 100644
--- a/crates/terminal_view/src/terminal_panel.rs
+++ b/crates/terminal_view/src/terminal_panel.rs
@@ -957,6 +957,13 @@ impl Render for TerminalPanel {
cx,
) {
cx.focus_view(&pane);
+ } else {
+ terminal_panel
+ .workspace
+ .update(cx, |workspace, cx| {
+ workspace.activate_pane_in_direction(action.0, cx)
+ })
+ .ok();
}
})
})