Center selections when going to definition

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Antonio Scandurra 2022-01-20 17:33:07 +01:00
parent b6685a532c
commit fad5c98b8d

View File

@ -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);
});
}
});