mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-27 00:57:19 +02:00
Merge branch 'master' into 1.4.0
This commit is contained in:
commit
2d21558a5a
1 changed files with 4 additions and 1 deletions
|
@ -242,7 +242,10 @@ std::string decode (color c)
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
std::string colorize (color fg, color bg, const std::string& input)
|
std::string colorize (color fg, color bg, const std::string& input)
|
||||||
{
|
{
|
||||||
return decode (fg) + decode (bg) + input + decode (off);
|
if (fg != nocolor || bg != nocolor)
|
||||||
|
return decode (fg) + decode (bg) + input + decode (off);
|
||||||
|
|
||||||
|
return input;
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue