Use fit instead of center for Agent following (#30228)

Ben Brandt created

Makes it easier to review the Agent edits since more of the previous
edits will be visible on screen.

Release Notes:

- N/A

Change summary

crates/editor/src/items.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

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