X-Git-Url: https://njoseph.me/gitweb/nimcoon.git/blobdiff_plain/e26cd8ca80865cf5e30f549008a001ba836a30c7..db34bbff88d4c8e222a92c905908f25027428ddf:/src/lib.nim diff --git a/src/lib.nim b/src/lib.nim index 3f3bb68..d77cbe1 100644 --- a/src/lib.nim +++ b/src/lib.nim @@ -155,7 +155,8 @@ proc present*(searchResults: SearchResults, options: Table[string, bool], select of "q": quit(0) else: - handleUserInput(searchResults[parseInt(userInput)], options, player) + let searchResult = searchResults[selectionRange.begin .. selectionRange.until][parseInt(userInput)] + handleUserInput(searchResult, options, player) if options["feelingLucky"]: quit(0) else: