diff options
Diffstat (limited to 'humanTable.go')
| -rw-r--r-- | humanTable.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/humanTable.go b/humanTable.go index 6486dcd..9fe164d 100644 --- a/humanTable.go +++ b/humanTable.go @@ -45,7 +45,11 @@ func StandardTableRow(sizes []int, args []string) (string, string) { if len(line) > TERMSIZE { small = TERMSIZE } else { + // todo: do something else with this small = len(line) - 3 + if small < 0 { + small = 0 + } } return line[0:small], strings.Join(fmts, " ") } |
