From 92dafdc0448b6e46e77d10b613c3e7ebb0c077c7 Mon Sep 17 00:00:00 2001 From: Dominic Ricottone Date: Sat, 17 Sep 2022 20:57:09 -0500 Subject: [PATCH] Bug fix Cursor was not being updated line over line. Every URL appeared to be the first. --- common/parcels.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/parcels.go b/common/parcels.go index 2f9affb..80f7dce 100644 --- a/common/parcels.go +++ b/common/parcels.go @@ -79,6 +79,9 @@ func parseFromScanner(scanner *bufio.Scanner, offset int) (string, string, error for i, url := range new_urls { urls.WriteString(fmt.Sprintf("[%d] %s\n", cursor+i, url)) } + + // update the cursor + cursor += count } // Check for scanner errors -- 2.45.2