aboutsummaryrefslogtreecommitdiffstats
path: root/src/ArgParser.java
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-06-18 14:39:14 +0200
committerMattias Andrée <maandree@operamail.com>2013-06-18 14:39:14 +0200
commit9bc1210fb7c4f3d129609a08feb5a8dbcfe28e3e (patch)
tree6f326df519abd4f42ddd2e511ace62eede4b8d64 /src/ArgParser.java
parentm (diff)
downloadargparser-9bc1210fb7c4f3d129609a08feb5a8dbcfe28e3e.tar.gz
argparser-9bc1210fb7c4f3d129609a08feb5a8dbcfe28e3e.tar.bz2
argparser-9bc1210fb7c4f3d129609a08feb5a8dbcfe28e3e.tar.xz
derp
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/ArgParser.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ArgParser.java b/src/ArgParser.java
index bb651f6..6ea7e65 100644
--- a/src/ArgParser.java
+++ b/src/ArgParser.java
@@ -863,7 +863,10 @@ public class ArgParser
lens.add(new int[] { l });
}
- int col = lens.size();
+ int col = 0;
+ for (final int[] len : lens)
+ if (col < len[0])
+ col = len[0];
col += 8 - ((col - 4) & 7);
int index = 0;
while (empty.length() < col)