Skip to content

Commit

Permalink
run clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
nnyyxxxx committed Nov 13, 2024
1 parent 31a139f commit fb9a18d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tui/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -565,10 +565,8 @@ impl AppState {
self.scroll_down();
} else if position.y <= list_start && current_selection > 0 {
self.scroll_up();
} else if position.y > list_start && position.y < list_end {
if relative_y < adjusted_len as u16 {
self.selection.select(Some(relative_y as usize));
}
} else if position.y > list_start && position.y < list_end && relative_y < adjusted_len as u16 {
self.selection.select(Some(relative_y as usize));
}
}
} else if mouse_in_tab_list {
Expand Down

0 comments on commit fb9a18d

Please sign in to comment.