diff options
| author | Pitchfork-and-Torch <Pitchfork-and-Torch@users.noreply.github.com> | 2026-07-09 21:11:52 -0400 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-07-10 15:06:54 +0300 |
| commit | 4f7fcc48d1f760ab6057d0964f009c05b753456a (patch) | |
| tree | ee617c2d12d4c33c2c63a6a8048ab9e80a11d225 /src/app/input | |
| parent | c8850a2e3e284033142db0f8117fa5998c68bd59 (diff) | |
fix: follow foreground cwd for new terminals
refs #1245
Diffstat (limited to 'src/app/input')
| -rw-r--r-- | src/app/input/mod.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/app/input/mod.rs b/src/app/input/mod.rs index e4da8bc9..bcd5da98 100644 --- a/src/app/input/mod.rs +++ b/src/app/input/mod.rs @@ -559,7 +559,8 @@ impl AppState { .and_then(|i| self.workspaces.get(i)) .and_then(|ws| { let tab = ws.active_tab()?; - tab.cwd_for_pane(tab.layout.focused(), &self.terminals, terminal_runtimes) + let pane_id = tab.layout.focused(); + tab.follow_cwd_for_pane(pane_id, &self.terminals, terminal_runtimes) }); let cwd = Some(super::creation::resolve_new_terminal_cwd( &self.new_terminal_cwd, |
