Show More
@@ -28,7 +28,11 b' def _navseq(step, firststep=None):' | |||
|
28 | 28 | if firststep: |
|
29 | 29 | yield firststep |
|
30 | 30 | if firststep >= 20 and firststep <= 40: |
|
31 |
|
|
|
31 | firststep = 50 | |
|
32 | yield firststep | |
|
33 | assert step > 0 | |
|
34 | assert firststep > 0 | |
|
35 | while step <= firststep: | |
|
32 | 36 | step *= 10 |
|
33 | 37 | while True: |
|
34 | 38 | yield 1 * step |
@@ -53,13 +57,9 b' def revnavgen(pos, pagelen, limit, nodef' | |||
|
53 | 57 | navbefore = [] |
|
54 | 58 | navafter = [] |
|
55 | 59 | |
|
56 | last = 0 | |
|
57 | 60 | for f in _navseq(1, pagelen): |
|
58 | if f < pagelen or f <= last: | |
|
59 | continue | |
|
60 | 61 | if f > limit: |
|
61 | 62 | break |
|
62 | last = f | |
|
63 | 63 | if pos + f < limit: |
|
64 | 64 | navafter.append(("+%d" % f, hex(nodefunc(pos + f).node()))) |
|
65 | 65 | if pos - f >= 0: |
General Comments 0
You need to be logged in to leave comments.
Login now