Update terminal.rs

Whoopsies
This commit is contained in:
Mikayla Maki 2022-06-30 20:30:52 -07:00 committed by GitHub
parent 04e802874d
commit 64d3dc32d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -262,8 +262,7 @@ impl Terminal {
.active_entry()
.and_then(|entry_id| project.worktree_for_entry(entry_id, cx))
.and_then(|worktree_handle| worktree_handle.read(cx).as_local())
.map(|wt| wt.abs_path().to_path_buf())
.or_else(|| Some("~".into()));
.map(|wt| wt.abs_path().to_path_buf());
workspace.add_item(Box::new(cx.add_view(|cx| Terminal::new(cx, abs_path))), cx);
}