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 post-merge issue from the old branch PR (#8590)

Kirill Bulatov953bc5eee21c
diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs
index 69247e4d99b..b3adf64a943 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<Self> =
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| {