Fix a bug where --diff wouldn't open the diff (#32962)
Release Notes: - Fixed a bug where `zed --diff A B` wouldn't open a diff
This commit is contained in:
parent
db99d7131e
commit
c1d0d72db9
1 changed files with 1 additions and 1 deletions
|
@ -296,7 +296,7 @@ pub async fn handle_cli_connection(
|
||||||
env,
|
env,
|
||||||
user_data_dir: _,
|
user_data_dir: _,
|
||||||
} => {
|
} => {
|
||||||
if !urls.is_empty() {
|
if !urls.is_empty() || !diff_paths.is_empty() {
|
||||||
cx.update(|cx| {
|
cx.update(|cx| {
|
||||||
match OpenRequest::parse(RawOpenRequest { urls, diff_paths }, cx) {
|
match OpenRequest::parse(RawOpenRequest { urls, diff_paths }, cx) {
|
||||||
Ok(open_request) => {
|
Ok(open_request) => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue