From 4a29ea7da8f0f05c5e54979e32c2a6badaf4c8d7 Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Wed, 15 Jun 2022 13:21:01 +0200 Subject: [PATCH] Autoscroll to newest selection when adding it via the cursor --- crates/editor/src/editor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs index e43b2a55ab..7e5066f693 100644 --- a/crates/editor/src/editor.rs +++ b/crates/editor/src/editor.rs @@ -1582,7 +1582,7 @@ impl Editor { } } - self.change_selections(Some(Autoscroll::Fit), cx, |s| { + self.change_selections(Some(Autoscroll::Newest), cx, |s| { if !add { s.clear_disjoint(); } else if click_count > 1 {