fix refill
Vladimir Bauer
6 years ago
| 350 | 350 | s.total = tc.total |
| 351 | 351 | s.current = tc.current |
| 352 | 352 | s.trimSpace = tc.trim |
| 353 | if tc.refill > 0 { | |
| 354 | if f, ok := s.filler.(interface{ SetRefill(int64) }); ok { | |
| 355 | f.SetRefill(tc.refill) | |
| 356 | } | |
| 357 | } | |
| 353 | s.refill = tc.refill | |
| 358 | 354 | tmpBuf.Reset() |
| 359 | 355 | tmpBuf.ReadFrom(s.draw(newStatistics(tw, s))) |
| 360 | 356 | by := tmpBuf.Bytes() |