Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

prevent empty cwd in terminal view (#8924)

Ezekiel Warrena0fac3866a40
diff --git a/crates/terminal_view/src/terminal_view.rs b/crates/terminal_view/src/terminal_view.rs
index 00cda8fc32c..53978b33bb7 100644
--- a/crates/terminal_view/src/terminal_view.rs
+++ b/crates/terminal_view/src/terminal_view.rs
@@ -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)