Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Apply `autoscroll_on_clicks` when extending selection (#28235)
neunato86cc5c2b55f9
diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rsindex 4e3ace49494..7b6f2e99562 100644--- a/crates/editor/src/editor.rs+++ b/crates/editor/src/editor.rs@@ -2952,7 +2952,9 @@ impl Editor {_ => {}}- self.change_selections(Some(Autoscroll::fit()), window, cx, |s| {+ let auto_scroll = EditorSettings::get_global(cx).autoscroll_on_clicks;++ self.change_selections(auto_scroll.then(Autoscroll::fit), window, cx, |s| {s.set_pending(pending_selection, pending_mode)});}