summaryrefslogtreecommitdiff
path: root/humanTable.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-26 13:05:00 -0500
committerJeff Carr <[email protected]>2025-09-26 13:05:00 -0500
commit23a1400692b1cc073945e6243fa8fd2b8c8bd231 (patch)
tree017131c67292a8e1c58e9418545ebeed5ec32e29 /humanTable.go
parent4d923f942fa406b253d5414e0b8d39a3a6012c18 (diff)
actually get the terminal widthv0.0.10
Diffstat (limited to 'humanTable.go')
-rw-r--r--humanTable.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/humanTable.go b/humanTable.go
index 6c0e803..295478d 100644
--- a/humanTable.go
+++ b/humanTable.go
@@ -42,8 +42,8 @@ func StandardTableRow(sizes []int, args []string) (string, string) {
line := strings.Join(parts, " ")
var small int
- if len(line) > WIDTH {
- small = WIDTH
+ if len(line) > TERMSIZE {
+ small = TERMSIZE
} else {
small = len(line) - 3
}