diff --git a/bar.go b/bar.go index 0a9e033..c7de057 100644 --- a/bar.go +++ b/bar.go @@ -337,8 +337,8 @@ } func (s *state) draw(termWidth int, prependWs, appendWs *widthSync) { - if termWidth <= 0 { - termWidth = 2 + if termWidth < 0 { + termWidth = s.width } stat := newStatistics(s)