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.

Fix a bug where --diff wouldn't open the diff (#32962)

Mikayla Makic1d0d72db929
diff --git a/crates/zed/src/zed/open_listener.rs b/crates/zed/src/zed/open_listener.rs
index 8b41901335d..0e9d0c51c9b 100644
--- a/crates/zed/src/zed/open_listener.rs
+++ b/crates/zed/src/zed/open_listener.rs
@@ -296,7 +296,7 @@ pub async fn handle_cli_connection(
env,
user_data_dir: _,
} => {
- if !urls.is_empty() {
+ if !urls.is_empty() || !diff_paths.is_empty() {
cx.update(|cx| {
match OpenRequest::parse(RawOpenRequest { urls, diff_paths }, cx) {
Ok(open_request) => {