change state receiver to *state
Vladimir Bauer
9 years ago
| 364 | 364 | b.removeReqCh <- struct{}{} |
| 365 | 365 | } |
| 366 | 366 | |
| 367 | func (s state) draw(termWidth int) []byte { | |
| 367 | func (s *state) draw(termWidth int) []byte { | |
| 368 | 368 | if termWidth <= 0 { |
| 369 | 369 | termWidth = s.barWidth |
| 370 | 370 | } |
| 419 | 419 | return buf |
| 420 | 420 | } |
| 421 | 421 | |
| 422 | func (s state) fillBar(width int) []byte { | |
| 422 | func (s *state) fillBar(width int) []byte { | |
| 423 | 423 | if width < 2 { |
| 424 | 424 | return []byte{} |
| 425 | 425 | } |