mirror of
https://github.com/zed-industries/zed.git
synced 2024-10-27 08:50:29 +00:00
Autoscroll to newest selection when adding it via the cursor
This commit is contained in:
parent
16ef5f43bb
commit
4750727586
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue