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

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

Release Notes:

- N/A
This commit is contained in:
Ben Brandt 2025-05-08 12:50:17 +02:00 committed by Joseph T. Lyons
parent e6165798ea
commit 35ed225a08

View File

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