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
+2 -1
View File
@@ -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)