Tue, 06 Jul 2010 17:02:40 +0200
clix.lua: Correctly remove handled args
clix.lua | file | annotate | diff | comparison | revisions |
--- a/clix.lua Mon Jun 07 20:19:53 2010 +0100 +++ b/clix.lua Tue Jul 06 17:02:40 2010 +0200 @@ -130,7 +130,7 @@ end -- Remove all the handled args from the arg array -for n=(args_handled_up_to or #arg),1,-1 do +for n=((args_handled_up_to > 0) and args_handled_up_to or #arg),1,-1 do table.remove(arg, n); end