Skip to content

Commit

Permalink
Non-wrapped things deserve to be counted too.
Browse files Browse the repository at this point in the history
  • Loading branch information
bsimpson63 committed Jul 25, 2012
1 parent bd385dc commit a552bc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion r2/r2/models/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,8 @@ def get_items(self):
if not (self.must_skip(i) or self.skip and not self.keep_item(i)):
items.append(i)
num_have += 1
count = count - 1 if self.reverse else count + 1
if self.wrap:
count = count - 1 if self.reverse else count + 1
i.num = count
last_item = i

Expand Down

0 comments on commit a552bc8

Please sign in to comment.