Enable auto-scroll when moving cursors in Editor::handle_input

Max Brunsfeld and Mikayla Maki created

Co-authored-by: Mikayla Maki <mikayla@zed.dev>

Change summary

crates/editor/src/editor.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

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);
         });
     }