Skip to content

Commit

Permalink
ver: 1.0.10
Browse files Browse the repository at this point in the history
Fix wrapping around to 0 when trying to scroll down from second last package in list to last package in list.
  • Loading branch information
Vonr committed Sep 6, 2023
1 parent b23063b commit cfd2cfc
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 28 deletions.
79 changes: 58 additions & 21 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 7 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "parui"
description = "Simple TUI frontend for paru or yay."
version = "1.0.9"
version = "1.0.10"
edition = "2021"
license = "MIT"
readme = "README.md"
Expand All @@ -28,7 +28,6 @@ atomic = "0.6.0"
parking_lot = "0.12.1"
nohash-hasher = "0.2.0"
compact_strings = "1.2.2"
dhat = "0.3.2"

[dependencies.crossterm]
version = "0.27.0"
Expand All @@ -41,17 +40,19 @@ features = ["process", "rt-multi-thread", "time", "macros", "sync"]

[dependencies.tui]
package = "ratatui"
version = "0.22.0"
version = "0.23.0"
features = ["crossterm"]

[dependencies.ureq]
version = "2.7.1"
default-features = false
features = ["gzip", "tls"]

[dependencies.bytemuck]
version = "1.13.1"
features = ["derive"]

[dependencies.dhat]
version = "0.3.2"
optional = true

[features]
dhat = []
dhat = ["dep:dhat"]
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ async fn main() -> Result<(), io::Error> {
} else {
let result_count = shown_len() - 1;

if result_count > 1 && current < result_count - 1 {
if result_count > 1 && current < result_count {
current += 1;
} else {
current = 0;
Expand Down

0 comments on commit cfd2cfc

Please sign in to comment.