From 201100de47bd2baf6d0199fd82f87d83257768d1 Mon Sep 17 00:00:00 2001 From: Joseph Nuthalapati Date: Fri, 17 Apr 2020 19:12:39 +0530 Subject: [PATCH] "all" plays only visible results Signed-off-by: Joseph Nuthalapati --- src/nimcoon.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.43.0