From 137a9cefbdb733a1922fc7ad9cafa3de7c987ee9 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Fri, 14 Oct 2022 11:32:22 -0700 Subject: [PATCH] Enable auto-scroll when moving cursors in Editor::handle_input Co-authored-by: Mikayla Maki --- crates/editor/src/editor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs index 07429a600d..014787b503 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); }); }