1
0
mirror of https://github.com/Jguer/yay synced 2024-07-03 08:51:44 +00:00

Fix wrong loop indexing

This commit is contained in:
r4v3n6101 2020-06-15 06:58:22 +03:00
parent 1b8c9cea49
commit 35a7d504fa

View File

@ -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
}