Do not scroll when selecting all
This commit is contained in:
parent
25ea07cd41
commit
c538504b9c
1 changed files with 1 additions and 1 deletions
|
@ -5298,7 +5298,7 @@ impl Editor {
|
||||||
|
|
||||||
pub fn select_all(&mut self, _: &SelectAll, cx: &mut ViewContext<Self>) {
|
pub fn select_all(&mut self, _: &SelectAll, cx: &mut ViewContext<Self>) {
|
||||||
let end = self.buffer.read(cx).read(cx).len();
|
let end = self.buffer.read(cx).read(cx).len();
|
||||||
self.change_selections(Some(Autoscroll::fit()), cx, |s| {
|
self.change_selections(None, cx, |s| {
|
||||||
s.select_ranges(vec![0..end]);
|
s.select_ranges(vec![0..end]);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue