From 06f0f0747def3ccd2cd33d76ee6bc760b4e07e40 Mon Sep 17 00:00:00 2001 From: "Joseph T. Lyons" Date: Thu, 23 Jan 2025 16:35:24 -0500 Subject: [PATCH] Autoscroll when running `editor: swap selection ends` (#23575) Closes https://github.com/zed-industries/zed/issues/23512 Release Notes: - Improved `editor: swap selection ends` by always scrolling the cursor into view --- crates/editor/src/editor.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs index 53c28b36eb..cf8640e048 100644 --- a/crates/editor/src/editor.rs +++ b/crates/editor/src/editor.rs @@ -10679,6 +10679,7 @@ impl Editor { } }); }); + self.request_autoscroll(Autoscroll::newest(), cx); cx.notify(); }