1
0
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:
jguer 2020-06-15 08:50:06 +02:00
parent 35a7d504fa
commit 1970dfa71b
No known key found for this signature in database
GPG Key ID: 6D6CC9BEA8556B35

View File

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