Skip to content

Commit

Permalink
ver: 1.0.16
Browse files Browse the repository at this point in the history
  • Loading branch information
Vonr committed Apr 24, 2024
1 parent a596d60 commit 0208b68
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

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

2 changes: 1 addition & 1 deletion 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.15"
version = "1.0.16"
edition = "2021"
license = "MIT"
readme = "README.md"
Expand Down
6 changes: 3 additions & 3 deletions src/interface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ pub fn search(query: &str, packages: &FixedCompactStrings, shown: Arc<RwLock<Sho
if query.is_empty() {
*shown.write() = Shown::All
} else {
match *shown.read() {
let mut handle = shown.write();
match *handle {
Shown::Few(_) => {
let mut handle = shown.write();
handle.clear();
handle.extend(
packages
Expand All @@ -91,7 +91,7 @@ pub fn search(query: &str, packages: &FixedCompactStrings, shown: Arc<RwLock<Sho
)
}
_ => {
*shown.write() = Shown::Few(
*handle = Shown::Few(
packages
.iter()
.enumerate()
Expand Down

0 comments on commit 0208b68

Please sign in to comment.