mirror of
https://github.com/atuinsh/atuin.git
synced 2025-02-02 19:49:56 +01:00
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
@ -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 New Issue
Block a user