diff --git a/bar_filler.go b/bar_filler.go index f38665a..7e68d6d 100644 --- a/bar_filler.go +++ b/bar_filler.go @@ -47,6 +47,10 @@ func (s *barFiller) setReverse() { s.reverse = true +} + +func (s *barFiller) SetRefill(count int) { + s.refillCount = count } func (s *barFiller) Fill(w io.Writer, width int, stat *decor.Statistics) { @@ -101,12 +105,8 @@ } } - for i := 0; i < width; i++ { + for i := 0; i < len(bb); i++ { w.Write(bb[i]) } w.Write(s.format[rRight]) } - -func (s *barFiller) SetRefill(count int) { - s.refillCount = count -}