From d06d0e6a94b1704cbf9113474041de0d810beab4 Mon Sep 17 00:00:00 2001 From: Ben Brandt Date: Thu, 8 May 2025 12:50:17 +0200 Subject: [PATCH] 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 --- crates/editor/src/items.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }