changeset 1222:b2bed51a045d

final fix ;)
author Franz Pletz <fpletz AT franz-pletz DOT org>
date Sun, 06 Aug 2006 13:58:20 +0200
parents 2f98fbe3a527
children d0e72768f936
files MoinMoin/search/results.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/search/results.py	Sun Aug 06 13:54:54 2006 +0200
+++ b/MoinMoin/search/results.py	Sun Aug 06 13:58:20 2006 +0200
@@ -686,9 +686,9 @@
         # list of pages to be shown
         page_range = range(*(
             cur_page - 4 < 0 and
-                (0, pages >= 10 and 10 or pages-1)
+                (0, pages >= 10 and 10 or pages)
                 or
-                (cur_page - 4, cur_page + 6 > pages and
+                (cur_page - 4, cur_page + 5 > pages and
                     cur_page + (pages - 1 - cur_page) or
                     cur_page + 6)))
         l.extend([''.join([