summaryrefslogtreecommitdiff
path: root/humanTable.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-26 13:47:33 -0500
committerJeff Carr <[email protected]>2025-10-26 13:47:33 -0500
commit57fa0dc00c8141c252c8ec452f8a34448315c33d (patch)
tree41dde96310110fff95adcb7ac7b17b031dcae0ac /humanTable.go
parentd7ee602d7352943d12e8588623a364c1bf2214ed (diff)
leave 1 char on each sidev0.0.32
Diffstat (limited to 'humanTable.go')
-rw-r--r--humanTable.go13
1 files changed, 7 insertions, 6 deletions
diff --git a/humanTable.go b/humanTable.go
index 9fe164d..17b84a1 100644
--- a/humanTable.go
+++ b/humanTable.go
@@ -42,14 +42,15 @@ func StandardTableRow(sizes []int, args []string) (string, string) {
line := strings.Join(parts, " ")
var small int
- if len(line) > TERMSIZE {
- small = TERMSIZE
+ if len(line) > TERMSIZE-2 {
+ small = TERMSIZE - 2
} else {
+ small = len(line)
// todo: do something else with this
- small = len(line) - 3
- if small < 0 {
- small = 0
- }
+ // small = len(line) - 3
+ // if small < 0 {
+ // small = 0
+ // }
}
return line[0:small], strings.Join(fmts, " ")
}