diff --git a/bar_option.go b/bar_option.go index 31b7939..e7d2e41 100644 --- a/bar_option.go +++ b/bar_option.go @@ -123,11 +123,18 @@ } } -// TrimSpace trims bar's edge spaces. +// BarFillerTrim bar filler is rendered with leading and trailing space +// like ' [===] ' by default. With this option leading and trailing +// space will be removed. +func BarFillerTrim() BarOption { + return func(s *bState) { + s.trimSpace = true + } +} + +// TrimSpace is an alias to BarFillerTrim. func TrimSpace() BarOption { - return func(s *bState) { - s.trimSpace = true - } + return BarFillerTrim() } // BarStyle overrides mpb.DefaultBarStyle which is "[=>-]<+".