mirror of
https://github.com/zed-industries/zed.git
synced 2024-10-24 23:47:05 +00:00
Update terminal.rs
Whoopsies
This commit is contained in:
parent
04e802874d
commit
64d3dc32d2
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue