From 3cfa2c65b360adcf36679b3223832085b86f3e1f Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Mon, 28 Mar 2022 14:38:51 +0200 Subject: [PATCH] Autoscroll to newest cursor on cmd-d instead of fitting all selections --- 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 f9327ee251..60d6bbc699 100644 --- a/crates/editor/src/editor.rs +++ b/crates/editor/src/editor.rs @@ -3998,7 +3998,7 @@ impl Editor { state.stack.pop(); } - self.update_selections(new_selections, Some(Autoscroll::Fit), cx); + self.update_selections(new_selections, Some(Autoscroll::Newest), cx); if state.stack.len() > 1 { self.add_selections_state = Some(state); }