Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
terminal: Respect RevealStrategy::NoFocus and Never focus settings (#45180)
rabsef-bicrym5488a19221aa
diff --git a/crates/terminal_view/src/terminal_panel.rs b/crates/terminal_view/src/terminal_panel.rsindex 85c6b81f406..a00e544f978 100644--- a/crates/terminal_view/src/terminal_panel.rs+++ b/crates/terminal_view/src/terminal_panel.rs@@ -790,8 +790,7 @@ impl TerminalPanel {}pane.update(cx, |pane, cx| {- let focus = pane.has_focus(window, cx)- || matches!(reveal_strategy, RevealStrategy::Always);+ let focus = matches!(reveal_strategy, RevealStrategy::Always);pane.add_item(terminal_view, true, focus, None, window, cx);});@@ -853,8 +852,7 @@ impl TerminalPanel {}pane.update(cx, |pane, cx| {- let focus = pane.has_focus(window, cx)- || matches!(reveal_strategy, RevealStrategy::Always);+ let focus = matches!(reveal_strategy, RevealStrategy::Always);pane.add_item(terminal_view, true, focus, None, window, cx);});