From 7df8b6fe10deba1b74196f9c65a0f55a4ad7c185 Mon Sep 17 00:00:00 2001 From: Vitor Ramos Date: Sun, 23 Jun 2024 09:36:52 +0200 Subject: [PATCH] Fix: Picker select_last not scrolling to item index (#13393) Release Notes: - Fix: Command palette not scrolling down to the last element --- 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 0cae18f50b..f16fb236d9 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(); }