mirror of
https://github.com/Jguer/yay.git
synced 2024-11-06 17:17:22 +01:00
fix: querybuilder GetTargets start iteration at 1, when include is 0 causes a crash (#2109)
This commit is contained in:
parent
88008e4eb3
commit
76e5ee1fa6
@ -238,7 +238,7 @@ func (s *SourceQueryBuilder) GetTargets(include, exclude intrange.IntRanges,
|
|||||||
lenRes = len(s.results)
|
lenRes = len(s.results)
|
||||||
)
|
)
|
||||||
|
|
||||||
for i := 0; i <= s.Len(); i++ {
|
for i := 1; i <= s.Len(); i++ {
|
||||||
target := i - 1
|
target := i - 1
|
||||||
if s.bottomUp {
|
if s.bottomUp {
|
||||||
target = lenRes - i
|
target = lenRes - i
|
||||||
|
Loading…
Reference in New Issue
Block a user