Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Do not scroll when selecting all

Kirill Bulatovc538504b9c88
diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs
index 87ba250a889..f1cf5a942b0 100644
--- a/crates/editor/src/editor.rs
+++ b/crates/editor/src/editor.rs
@@ -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]);
});
}