From 953bc5eee21cb2438cc58dad39e5aa59becbdbf1 Mon Sep 17 00:00:00 2001 From: Kirill Bulatov Date: Thu, 29 Feb 2024 11:46:00 +0200 Subject: [PATCH] Fix post-merge issue from the old branch PR (#8590) Follow-up of https://github.com/zed-industries/zed/pull/6924/files that had old code in CI that worked, but fresh `main` had different code that needed small changes. Release Notes: - N/A --- crates/editor/src/editor.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs index 69247e4d99..b3adf64a94 100644 --- a/crates/editor/src/editor.rs +++ b/crates/editor/src/editor.rs @@ -7709,7 +7709,11 @@ impl Editor { cx.window_context().defer(move |cx| { let target_editor: View = workspace.update(cx, |workspace, cx| { - workspace.open_project_item(target.buffer.clone(), cx) + workspace.open_project_item( + workspace.active_pane().clone(), + target.buffer.clone(), + cx, + ) }); target_editor.update(cx, |target_editor, cx| { target_editor.change_selections(Some(Autoscroll::fit()), cx, |s| {