mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-04 06:34:26 +00:00
prevent empty cwd in terminal view (#8924)
closes #8825 Release Notes: - N/A
This commit is contained in:
parent
8352f39ff9
commit
a0fac3866a
1 changed files with 2 additions and 1 deletions
|
@ -885,7 +885,8 @@ impl Item for TerminalView {
|
|||
})
|
||||
.ok()
|
||||
.flatten()
|
||||
});
|
||||
})
|
||||
.filter(|cwd| !cwd.as_os_str().is_empty());
|
||||
|
||||
let terminal = project.update(&mut cx, |project, cx| {
|
||||
project.create_terminal(cwd, None, window, cx)
|
||||
|
|
Loading…
Reference in a new issue