(&mut self)
| 90 | } |
| 91 | |
| 92 | pub fn move_down(&mut self) { |
| 93 | if !self.visible { |
| 94 | return; |
| 95 | } |
| 96 | let selected = self.list_state.selected().unwrap_or(0); |
| 97 | let next = (selected + 1) % self.items.len(); |
| 98 | self.list_state.select(Some(next)); |
| 99 | } |
| 100 | |
| 101 | /// Confirm the selected command and return its name |
| 102 | pub fn apply_selection(&mut self) -> Option<String> { |
no test coverage detected