@@ -100,8 +100,11 @@ impl<T> Picker<T> {
102 pub fn move_down(&mut self) {
102 pub fn move_down(&mut self) {
103− // TODO: len - 1
103+ if self.matches.is_empty() {
104− if self.cursor < self.options.len() {
107+ if self.cursor < self.matches.len() - 1 {
105 self.cursor += 1;
108 self.cursor += 1;