From 4750727586854a01fd3ba0556c4106b7c1bf4181 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 {