Autoscroll to newest selection when adding it via the cursor

This commit is contained in:
Antonio Scandurra committed 2022-06-15 13:21:01 +02:00
1 parent 4de2b45b79
commit 4a29ea7da8
1 file changed
+1 -1
+1 -1
View File
@@ -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 {