diff --git a/bar.go b/bar.go index 39607c3..8947b4c 100644 --- a/bar.go +++ b/bar.go @@ -428,7 +428,7 @@ fmtBytes := convertFmtRunesToBytes(s.format) if s.simpleSpinner != nil { - for _, block := range [...][]byte{fmtBytes[rLeft], []byte{s.simpleSpinner()}, fmtBytes[rRight]} { + for _, block := range [...][]byte{fmtBytes[rLeft], {s.simpleSpinner()}, fmtBytes[rRight]} { barBlock = append(barBlock, block...) } return concatenateBlocks(buf, prependBlock, leftSpace, barBlock, rightSpace, appendBlock)