diff --git a/bar.go b/bar.go index b151da5..143e828 100644 --- a/bar.go +++ b/bar.go @@ -350,12 +350,12 @@ // render append functions to the right of the bar s.bufA.Reset() + if !s.trimRightSpace { + s.bufA.WriteByte(' ') + } + for i, f := range s.appendFuncs { s.bufA.WriteString(f(stat, appendWs.Listen[i], appendWs.Result[i])) - } - - if !s.trimRightSpace { - s.bufA.WriteByte(' ') } prependCount := utf8.RuneCount(s.bufP.Bytes())