if selectionRange.until + 1 < len(searchResults):
selectionRange = (selectionRange.until + 1, min(len(searchResults) - 1, selectionRange.until + limit))
continue
- # of "p":
+ of "p":
+ if selectionRange.begin > 0:
+ selectionRange = (selectionRange.begin - limit, selectionRange.until - limit)
+ continue
of "q":
quit(0)