Skip to content
Permalink
Browse files

Fix list item search

  • Loading branch information...
Raggaer committed May 31, 2019
1 parent 1b1aeea commit 3fb542431ecde28900c3a72a854eeb506db012d0
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/command/list/item.rs
@@ -33,7 +33,7 @@ fn show_list_item(mut list: Vec<crate::command::OpItem>, query: &str) {
if !query.is_empty() {
list = list
.into_iter()
.filter(|item| item.overview.title.contains(query) && item.overview.url.contains(query))
.filter(|item| item.overview.title.contains(query) || item.overview.url.contains(query))
.collect();
}
for (i, item) in list.iter().enumerate() {

0 comments on commit 3fb5424

Please sign in to comment.
You can’t perform that action at this time.