diff --git a/crates/editor/src/items.rs b/crates/editor/src/items.rs index 6f8c13acd192e4e994081ec77b76fab5243b043b..a59433c27e0c9ca6afd4884961cb9912fae33826 100644 --- a/crates/editor/src/items.rs +++ b/crates/editor/src/items.rs @@ -372,7 +372,7 @@ impl FollowableItem for Editor { }; drop(buffer); self.set_selections_from_remote(vec![selection], None, window, cx); - self.request_autoscroll_remotely(Autoscroll::center(), cx); + self.request_autoscroll_remotely(Autoscroll::fit(), cx); } }