mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-26 12:21:50 +00:00
Center selections when going to definition
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
parent
b6685a532c
commit
fad5c98b8d
1 changed files with 1 additions and 1 deletions
|
@ -3021,7 +3021,7 @@ impl Editor {
|
||||||
.downcast::<Self>()
|
.downcast::<Self>()
|
||||||
.unwrap();
|
.unwrap();
|
||||||
target_editor.update(cx, |target_editor, cx| {
|
target_editor.update(cx, |target_editor, cx| {
|
||||||
target_editor.select_ranges([range], Some(Autoscroll::Fit), cx);
|
target_editor.select_ranges([range], Some(Autoscroll::Center), cx);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue