diff --git a/internal/term/term.go b/internal/term/term.go index fcf7306..e9d8512 100644 --- a/internal/term/term.go +++ b/internal/term/term.go @@ -31,7 +31,7 @@ func GetWidth() (termWidth int) { fd := int(stdoutTerm.Fd()) termWidth, _, err = GetSize(fd) - if err != nil { + if err != nil || termWidth == 0 { termWidth = defaultTermWidth }