From a02c3a69bb5cea3832ef54e7cbe29425cc392eb3 Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Wed, 22 Jul 2026 22:41:01 +0300 Subject: refactor: centralize new terminal cwd selection replaces contributions from Pitchfork-and-Torch --- src/app/input/mod.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/app/input') diff --git a/src/app/input/mod.rs b/src/app/input/mod.rs index c9056109..5eee4250 100644 --- a/src/app/input/mod.rs +++ b/src/app/input/mod.rs @@ -652,8 +652,12 @@ impl AppState { .and_then(|i| self.workspaces.get(i)) .and_then(|ws| { let tab = ws.active_tab()?; - let pane_id = tab.layout.focused(); - tab.follow_cwd_for_pane(pane_id, &self.terminals, terminal_runtimes) + let terminal_id = tab.terminal_id(tab.layout.focused())?; + super::creation::launch_cwd_for_terminal( + terminal_id, + &self.terminals, + terminal_runtimes, + ) }); let cwd = Some(super::creation::resolve_new_terminal_cwd( &self.new_terminal_cwd, -- cgit v1.2.3