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/app/api/panes.rs | |
| parent | 9524d0a3bc9912b2094a1bda38c845a10bb4ba7b (diff) | |
refactor: centralize new terminal cwd selection
replaces contributions from Pitchfork-and-Torch
Diffstat (limited to 'src/app/api/panes.rs')
| -rw-r--r-- | src/app/api/panes.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app/api/panes.rs b/src/app/api/panes.rs index 483d73a5..9947a3b8 100644 --- a/src/app/api/panes.rs +++ b/src/app/api/panes.rs @@ -51,7 +51,7 @@ impl App { }; let (rows, cols) = self.state.estimate_pane_size(); let split_cwd = params.cwd.map(std::path::PathBuf::from).or_else(|| { - let follow_cwd = self.follow_cwd_for_pane_in_workspace(ws_idx, target_pane_id); + let follow_cwd = self.launch_cwd_for_pane_in_workspace(ws_idx, target_pane_id); Some(self.resolve_new_terminal_cwd(follow_cwd)) }); let default_shell = self.state.default_shell.clone(); |
