From 43cdb0fa3af339ab5b82897a9507569d4f7d2389 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 31 Oct 2015 16:15:05 -0400 Subject: [PATCH] ColTags: Now uses ::renderStringRight --- src/columns/ColTags.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/columns/ColTags.cpp b/src/columns/ColTags.cpp index 89028b42f..5c6ac2e0a 100644 --- a/src/columns/ColTags.cpp +++ b/src/columns/ColTags.cpp @@ -135,21 +135,17 @@ void ColumnTags::render ( wrapText (all, tags, width, _hyphenate); for (auto& i : all) - lines.push_back (color.colorize (leftJustify (i, width))); + renderStringLeft (lines, width, color, i); } else if (_style == "indicator") { - lines.push_back ( - color.colorize ( - rightJustify (context.config.get ("tag.indicator"), width))); + renderStringRight (lines, width, color, context.config.get ("tag.indicator")); } else if (_style == "count") { std::vector all; split (all, tags, ','); - lines.push_back ( - color.colorize ( - rightJustify ("[" + format ((int)all.size ()) + "]", width))); + renderStringRight (lines, width, color, "[" + format (static_cast (all.size ())) + "]"); } } }