Non-wrapped things deserve to be counted too.

This commit is contained in:
bsimpson63
2012-07-25 16:45:28 -04:00
parent bd385dcc96
commit a552bc858d

View File

@@ -392,8 +392,8 @@ class QueryBuilder(Builder):
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