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/workspace/tab.rs | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'src/workspace') diff --git a/src/workspace/tab.rs b/src/workspace/tab.rs index 4c86a6e8..e2f82741 100644 --- a/src/workspace/tab.rs +++ b/src/workspace/tab.rs @@ -571,21 +571,4 @@ impl Tab { .get(terminal_id) .and_then(|rt| rt.foreground_cwd()) } - - pub fn follow_cwd_for_pane( - &self, - pane_id: PaneId, - terminals: &HashMap, - terminal_runtimes: &TerminalRuntimeRegistry, - ) -> Option { - let terminal_id = self.terminal_id(pane_id)?; - terminal_runtimes - .get(terminal_id) - .and_then(|runtime| runtime.follow_cwd()) - .or_else(|| { - terminals - .get(terminal_id) - .map(|terminal| terminal.cwd.clone()) - }) - } } -- cgit v1.2.3