Do not scroll when selecting all

This commit is contained in:
Kirill Bulatov 2023-07-22 00:17:02 +03:00
parent 25ea07cd41
commit c538504b9c

View File

@ -5298,7 +5298,7 @@ impl Editor {
pub fn select_all(&mut self, _: &SelectAll, cx: &mut ViewContext<Self>) {
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]);
});
}