diff options
Diffstat (limited to 'src/app/input')
| -rw-r--r-- | src/app/input/mod.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/app/input/mod.rs b/src/app/input/mod.rs index e357b33d..ef8b93f3 100644 --- a/src/app/input/mod.rs +++ b/src/app/input/mod.rs @@ -256,13 +256,17 @@ impl AppState { let new_rows = (rows / 2).max(4); let new_cols = (cols / 2).max(10); - let cwd = self + let follow_cwd = self .active .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 cwd = Some(super::creation::resolve_new_terminal_cwd( + &self.new_terminal_cwd, + follow_cwd, + )); if let Some(ws) = self.active.and_then(|i| self.workspaces.get_mut(i)) { if let Ok(new_pane) = ws.split_focused( |
