prevent empty cwd in terminal view (#8924)

closes #8825

Release Notes:

- N/A
This commit is contained in:
Ezekiel Warren 2024-03-06 11:26:16 -08:00 committed by GitHub
parent 8352f39ff9
commit a0fac3866a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -885,7 +885,8 @@ impl Item for TerminalView {
}) })
.ok() .ok()
.flatten() .flatten()
}); })
.filter(|cwd| !cwd.as_os_str().is_empty());
let terminal = project.update(&mut cx, |project, cx| { let terminal = project.update(&mut cx, |project, cx| {
project.create_terminal(cwd, None, window, cx) project.create_terminal(cwd, None, window, cx)