diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-07-22 22:41:01 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-07-22 22:41:01 +0300 |
| commit | a02c3a69bb5cea3832ef54e7cbe29425cc392eb3 (patch) | |
| tree | 7dd9a6183f8204603680c5fe0ab03cb5b19dcfa4 /src/workspace | |
| parent | 9524d0a3bc9912b2094a1bda38c845a10bb4ba7b (diff) | |
refactor: centralize new terminal cwd selection
replaces contributions from Pitchfork-and-Torch
Diffstat (limited to 'src/workspace')
| -rw-r--r-- | src/workspace/tab.rs | 17 |
1 files changed, 0 insertions, 17 deletions
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<TerminalId, TerminalState>, - terminal_runtimes: &TerminalRuntimeRegistry, - ) -> Option<PathBuf> { - 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()) - }) - } } |
