Fix: Picker select_last not scrolling to item index (cherry-pick #13393) (#13410)

gcp-cherry-pick-bot[bot] and Vitor Ramos created

Cherry-picked Fix: Picker select_last not scrolling to item index
(#13393)

Release Notes:

- Fix: Command palette not scrolling down to the last element

Co-authored-by: Vitor Ramos <ramos.vitor89@gmail.com>

Change summary

crates/picker/src/picker.rs | 1 -
1 file changed, 1 deletion(-)

Detailed changes

crates/picker/src/picker.rs 🔗

@@ -300,7 +300,6 @@ impl<D: PickerDelegate> Picker<D> {
     fn select_last(&mut self, _: &menu::SelectLast, cx: &mut ViewContext<Self>) {
         let count = self.delegate.match_count();
         if count > 0 {
-            self.delegate.set_selected_index(count - 1, cx);
             self.set_selected_index(count - 1, true, cx);
             cx.notify();
         }