From 23a1400692b1cc073945e6243fa8fd2b8c8bd231 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 26 Sep 2025 13:05:00 -0500 Subject: actually get the terminal width --- humanTable.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'humanTable.go') 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 } -- cgit v1.2.3