diff --git a/bar.go b/bar.go index c02b257..2a56984 100644 --- a/bar.go +++ b/bar.go @@ -365,7 +365,7 @@ b.removeReqCh <- struct{}{} } -func (s state) draw(termWidth int) []byte { +func (s *state) draw(termWidth int) []byte { if termWidth <= 0 { termWidth = s.barWidth } @@ -420,7 +420,7 @@ return buf } -func (s state) fillBar(width int) []byte { +func (s *state) fillBar(width int) []byte { if width < 2 { return []byte{} }