Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Use fit instead of center for Agent following (#30228)
Ben Brandtd06d0e6a94b1
diff --git a/crates/editor/src/items.rs b/crates/editor/src/items.rsindex 6f8c13acd19..a59433c27e0 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);}}