aboutsummaryrefslogtreecommitdiff
path: root/src/app/api/panes.rs
diff options
context:
space:
mode:
authorOgulcan Celik <ogulcancelik@gmail.com>2026-07-22 22:41:01 +0300
committerOgulcan Celik <ogulcancelik@gmail.com>2026-07-22 22:41:01 +0300
commita02c3a69bb5cea3832ef54e7cbe29425cc392eb3 (patch)
tree7dd9a6183f8204603680c5fe0ab03cb5b19dcfa4 /src/app/api/panes.rs
parent9524d0a3bc9912b2094a1bda38c845a10bb4ba7b (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.rs2
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();