Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
terminal: Properly apply focus when switching terminal via tabbing hotkey (#53127)
Andre Roelofs00c771af0a3e
diff --git a/crates/terminal_view/src/terminal_view.rs b/crates/terminal_view/src/terminal_view.rsindex acccd6129f7..2f6a984798f 100644--- a/crates/terminal_view/src/terminal_view.rs+++ b/crates/terminal_view/src/terminal_view.rs@@ -1356,7 +1356,9 @@ impl Item for TerminalView {h_flex().gap_1().group("term-tab-icon")- .track_focus(&self.focus_handle)+ .when(!params.selected, |this| {+ this.track_focus(&self.focus_handle)+ }).on_action(move |action: &RenameTerminal, window, cx| {self_handle.update(cx, |this, cx| this.rename_terminal(action, window, cx))