From: Joseph Nuthalapati Date: Fri, 17 Apr 2020 13:42:39 +0000 (+0530) Subject: "all" plays only visible results X-Git-Tag: 0.2.0~4 X-Git-Url: https://njoseph.me/gitweb/nimcoon.git/commitdiff_plain/201100de47bd2baf6d0199fd82f87d83257768d1 "all" plays only visible results Signed-off-by: Joseph Nuthalapati --- diff --git a/src/nimcoon.nim b/src/nimcoon.nim index 56e6867..0624bad 100644 --- a/src/nimcoon.nim +++ b/src/nimcoon.nim @@ -85,7 +85,7 @@ proc main() = let userInput = getUserInput() if userInput == "all": - for number in 0..(len(searchResults)): + for number in 0..(limit-1): # Nim decided to deviate from Python ranges here # TODO `spawn` this? handleUserInput(number)