From 4f7fcc48d1f760ab6057d0964f009c05b753456a Mon Sep 17 00:00:00 2001 From: Pitchfork-and-Torch Date: Thu, 9 Jul 2026 21:11:52 -0400 Subject: fix: follow foreground cwd for new terminals refs #1245 --- src/app/input/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/app/input/mod.rs') diff --git a/src/app/input/mod.rs b/src/app/input/mod.rs index e4da8bc9..bcd5da98 100644 --- a/src/app/input/mod.rs +++ b/src/app/input/mod.rs @@ -559,7 +559,8 @@ impl AppState { .and_then(|i| self.workspaces.get(i)) .and_then(|ws| { let tab = ws.active_tab()?; - tab.cwd_for_pane(tab.layout.focused(), &self.terminals, terminal_runtimes) + let pane_id = tab.layout.focused(); + tab.follow_cwd_for_pane(pane_id, &self.terminals, terminal_runtimes) }); let cwd = Some(super::creation::resolve_new_terminal_cwd( &self.new_terminal_cwd, -- cgit v1.2.3