diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs index 07429a600dd865cd24c0764585499333721ef90b..014787b5039f03a6d1f56526a6ec4372e3fc0bb7 100644 --- a/crates/editor/src/editor.rs +++ b/crates/editor/src/editor.rs @@ -2024,7 +2024,7 @@ impl Editor { } drop(snapshot); - this.change_selections(None, cx, |s| s.select(new_selections)); + this.change_selections(Some(Autoscroll::Fit), cx, |s| s.select(new_selections)); this.trigger_completion_on_input(&text, cx); }); }