From fbeaa70e9765c3872da40066f4c4d41ca5254f29 Mon Sep 17 00:00:00 2001 From: "gcp-cherry-pick-bot[bot]" <98988430+gcp-cherry-pick-bot[bot]@users.noreply.github.com> Date: Sun, 23 Jun 2024 09:55:04 +0200 Subject: [PATCH] Fix: Picker select_last not scrolling to item index (cherry-pick #13393) (#13410) 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 --- crates/picker/src/picker.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/crates/picker/src/picker.rs b/crates/picker/src/picker.rs index 0cae18f50b3c8ed8579d2701d941e00f0643afb7..f16fb236d9ed7bc09ea37972a2c4ad5c30632d57 100644 --- a/crates/picker/src/picker.rs +++ b/crates/picker/src/picker.rs @@ -300,7 +300,6 @@ impl Picker { fn select_last(&mut self, _: &menu::SelectLast, cx: &mut ViewContext) { 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(); }