mirror of
https://github.com/zed-industries/zed.git
synced 2024-10-26 00:19:46 +00:00
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
This commit is contained in:
parent
c94852b843
commit
953bc5eee2
1 changed files with 5 additions and 1 deletions
|
@ -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| {
|
||||
|
|
Loading…
Reference in a new issue