mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-12 13:24:19 +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>()
|
||||
.unwrap();
|
||||
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