Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix terminal rename not working from context menu on inactive tabs (#50031)
Mohammad Razeghice7512b11550
diff --git a/crates/terminal_view/src/terminal_view.rs b/crates/terminal_view/src/terminal_view.rsindex 3f38ee2f0fd..f3188f0f3ab 100644--- a/crates/terminal_view/src/terminal_view.rs+++ b/crates/terminal_view/src/terminal_view.rs@@ -1350,9 +1350,16 @@ impl Item for TerminalView {None => (IconName::Terminal, Color::Muted, None),};+ let self_handle = self.self_handle.clone();h_flex().gap_1().group("term-tab-icon")+ .track_focus(&self.focus_handle)+ .on_action(move |action: &RenameTerminal, window, cx| {+ self_handle+ .update(cx, |this, cx| this.rename_terminal(action, window, cx))+ .ok();+ }).child(h_flex().group("term-tab-icon")