Center selections when going to definition
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
co-authored by
Nathan Sobo
parent
b6685a532c
commit
fad5c98b8d
@@ -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);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user