handle range starting at 0 (fixes #30)

This commit is contained in:
jazzpi 2015-03-30 12:45:46 +02:00 committed by Loic Nageleisen
parent e97964dd5c
commit 657a92e84e

View file

@ -102,6 +102,8 @@ class Command
if off1?
address1 += @parseOffset(off1)
address1 = 0 if address1 is -1
if address1 < 0 or address1 > lastLine
throw new CommandError('Invalid range')