Signed-off-by: Baptiste Roux <arte.but.posix@gmail.com> Signed-off-by: Baptiste Roux <arte.but.posix@gmail.com>
This commit is contained in:
parent
b01d9f81b0
commit
582189336d
1 changed files with 3 additions and 0 deletions
|
@ -122,6 +122,9 @@ impl State {
|
|||
}
|
||||
TermEvent::Key(Key::Down | Key::Ctrl('n' | 'j'))
|
||||
| TermEvent::Mouse(MouseEvent::Press(MouseButton::WheelDown, _, _)) => {
|
||||
if self.results_state.selected() == 0 && input.eq(&TermEvent::Key(Key::Down)) {
|
||||
return Some(RETURN_ORIGINAL);
|
||||
}
|
||||
let i = self.results_state.selected().saturating_sub(1);
|
||||
self.results_state.select(i);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue