Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
terminal: Handle spaces in cwds of remote terminals (#34844)
Piotr Osiewicz6ea09beea8b5
diff --git a/crates/project/src/terminals.rs b/crates/project/src/terminals.rsindex 3d62b4156b7..8cfbdff3118 100644--- a/crates/project/src/terminals.rs+++ b/crates/project/src/terminals.rs@@ -662,7 +662,7 @@ pub fn wrap_for_ssh(format!("cd \"$HOME/{trimmed_path}\"; {env_changes} {to_run}")} else {- format!("cd {path}; {env_changes} {to_run}")+ format!("cd \"{path}\"; {env_changes} {to_run}")}} else {format!("cd; {env_changes} {to_run}")