mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
ColDepends: Now uses ::renderStringLeft
This commit is contained in:
parent
06c50efa63
commit
292e2f1b89
1 changed files with 19 additions and 25 deletions
|
@ -122,22 +122,15 @@ void ColumnDepends::render (
|
|||
if (task.has (_name))
|
||||
{
|
||||
if (_style == "indicator")
|
||||
renderStringRight (lines, width, color, context.config.get ("dependency.indicator"));
|
||||
else
|
||||
{
|
||||
lines.push_back (
|
||||
color.colorize (
|
||||
rightJustify (context.config.get ("dependency.indicator"), width)));
|
||||
return;
|
||||
}
|
||||
|
||||
std::vector <Task> blocking;
|
||||
dependencyGetBlocking (task, blocking);
|
||||
|
||||
if (_style == "count")
|
||||
{
|
||||
lines.push_back (
|
||||
color.colorize (
|
||||
rightJustify ("[" + format ((int)blocking.size ()) + "]", width)));
|
||||
}
|
||||
renderStringRight (lines, width, color, "[" + format (static_cast <int>(blocking.size ())) + "]");
|
||||
|
||||
else if (_style == "default" ||
|
||||
_style == "list")
|
||||
{
|
||||
|
@ -152,7 +145,8 @@ void ColumnDepends::render (
|
|||
wrapText (all, combined, width, _hyphenate);
|
||||
|
||||
for (auto& i : all)
|
||||
lines.push_back (color.colorize (leftJustify (i, width)));
|
||||
renderStringLeft (lines, width, color, i);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue