Autoscroll to newest cursor on cmd-d instead of fitting all selections

This commit is contained in:
Antonio Scandurra 2022-03-28 14:38:51 +02:00
parent 3ae5fc74c9
commit 3cfa2c65b3

View file

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