Tidy up the code (#12116)
Small follow-ups for https://github.com/zed-industries/zed/pull/12063 and https://github.com/zed-industries/zed/pull/12103 Release Notes: - N/A
This commit is contained in:
parent
c440f3a71b
commit
c4e87444e7
9 changed files with 130 additions and 104 deletions
|
@ -889,7 +889,9 @@ impl Item for TerminalView {
|
|||
.as_ref()
|
||||
.is_some_and(|from_db| !from_db.as_os_str().is_empty())
|
||||
{
|
||||
project.read(cx).terminal_work_dir_for(from_db.as_ref(), cx)
|
||||
project
|
||||
.read(cx)
|
||||
.terminal_work_dir_for(from_db.as_deref(), cx)
|
||||
} else {
|
||||
let strategy = TerminalSettings::get_global(cx).working_directory.clone();
|
||||
workspace.upgrade().and_then(|workspace| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue