mirror of
https://github.com/Jguer/yay.git
synced 2024-11-06 17:17:22 +01:00
Fix wrong loop indexing
This commit is contained in:
parent
1b8c9cea49
commit
35a7d504fa
6
query.go
6
query.go
@ -169,12 +169,12 @@ func narrowSearch(pkgS []string, sortS bool) (aurQuery, error) {
|
||||
|
||||
for i := range r {
|
||||
match := true
|
||||
for i, pkgN := range pkgS {
|
||||
if usedIndex == i {
|
||||
for j, pkgN := range pkgS {
|
||||
if usedIndex == j {
|
||||
continue
|
||||
}
|
||||
|
||||
if !(strings.Contains(r[i].Name, pkgN) || strings.Contains(strings.ToLower(r[i].Description), pkgN)) {
|
||||
if !(strings.Contains(r[j].Name, pkgN) || strings.Contains(strings.ToLower(r[j].Description), pkgN)) {
|
||||
match = false
|
||||
break
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user