mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-05 18:25:57 +00:00
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:
commit
0c8d33bd2d
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 {
|
if !add {
|
||||||
s.clear_disjoint();
|
s.clear_disjoint();
|
||||||
} else if click_count > 1 {
|
} else if click_count > 1 {
|
||||||
|
|
Loading…
Reference in a new issue