diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-03-28 00:32:35 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-03-28 00:32:35 +0300 |
| commit | f8c4d6a5f1bd4bcaee43ba3e1373465cd960cdc3 (patch) | |
| tree | 10e9d52f05b476f83a3ee88a87a7c8f7aca9eca6 /src/workspace.rs | |
| parent | 787786c62009f6c27a0091b61017ae5ad5c95c0e (diff) | |
feat: add per-agent sound overrides
Diffstat (limited to 'src/workspace.rs')
| -rw-r--r-- | src/workspace.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/workspace.rs b/src/workspace.rs index 2b8a2902..a4cdfcc4 100644 --- a/src/workspace.rs +++ b/src/workspace.rs @@ -58,9 +58,8 @@ impl Workspace { cwd: Option<std::path::PathBuf>, ) -> std::io::Result<PaneId> { let new_id = self.layout.split_focused(direction); - let actual_cwd = cwd.unwrap_or_else(|| { - std::env::current_dir().unwrap_or_else(|_| "/".into()) - }); + let actual_cwd = + cwd.unwrap_or_else(|| std::env::current_dir().unwrap_or_else(|_| "/".into())); let runtime = PaneRuntime::spawn(new_id, rows, cols, actual_cwd, self.events.clone())?; self.panes.insert(new_id, PaneState::new()); self.runtimes.insert(new_id, runtime); |
