From 91eed7fee9705557289575b9e9b4646c25d0cc7a Mon Sep 17 00:00:00 2001 From: m455 Date: Sat, 2 Nov 2019 15:26:23 -0400 Subject: [PATCH] fixed a big that didn't allow the user to remove item number 0 from their list --- args.rkt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/args.rkt b/args.rkt index 8dc1816..e9146a6 100644 --- a/args.rkt +++ b/args.rkt @@ -32,7 +32,8 @@ (equal? args-length 2) (equal? (vector-ref args 0) config:remove-command) (real? (string->number (vector-ref args 1))) - (positive? (string->number (vector-ref args 1))) + (or (positive? (string->number (vector-ref args 1))) + (zero? (string->number (vector-ref args 1)))) ;; Length subtract one because the numbering starts at zero (not (> (string->number (vector-ref args 1)) (sub1 (length (util:file->string-list config:path-to-file))))) (util:remove-item-from-list args))]