mirror of
https://github.com/Jguer/yay
synced 2024-07-03 08:51:44 +00:00
fix(query): fix package indexing on narrow search
This commit is contained in:
parent
35a7d504fa
commit
1970dfa71b
2
query.go
2
query.go
|
@ -174,7 +174,7 @@ func narrowSearch(pkgS []string, sortS bool) (aurQuery, error) {
|
|||
continue
|
||||
}
|
||||
|
||||
if !(strings.Contains(r[j].Name, pkgN) || strings.Contains(strings.ToLower(r[j].Description), pkgN)) {
|
||||
if !(strings.Contains(r[i].Name, pkgN) || strings.Contains(strings.ToLower(r[i].Description), pkgN)) {
|
||||
match = false
|
||||
break
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user