X-Git-Url: https://njoseph.me/gitweb/nimcoon.git/blobdiff_plain/e6561dc98ae9f83c63ebf3e14fbefbd6e5264f5d..4918a147760087de4d1d4dc5e8d5a26cc573f91a:/src/nimcoon.nim?ds=sidebyside diff --git a/src/nimcoon.nim b/src/nimcoon.nim index 5ddcfcc..81db732 100644 --- a/src/nimcoon.nim +++ b/src/nimcoon.nim @@ -96,7 +96,10 @@ proc main() = 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)