From db34bbff88d4c8e222a92c905908f25027428ddf Mon Sep 17 00:00:00 2001 From: Joseph Nuthalapati Date: Thu, 14 May 2020 17:55:44 +0530 Subject: [PATCH] Fix bug with paginated result selection Signed-off-by: Joseph Nuthalapati --- src/lib.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: -- 2.43.0