Merge pull request #1192 from zed-industries/fix-autoscroll-on-cursor-click

Autoscroll to newest selection when adding it via the cursor
This commit is contained in:
Antonio Scandurra 2022-06-15 13:26:15 +02:00 committed by GitHub
commit 0c8d33bd2d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 {