@ -157,7 +157,7 @@ class Paginator:
def pages(self):
"""Returns the rendered list of pages."""
# we have more than just the prefix in our current page
if len(self._current_page) > 1:
if len(self._current_page) > (0 if self.prefix is None else 1):
self.close_page()
return self._pages