diff --git a/src/commands/CmdVersion.cpp b/src/commands/CmdVersion.cpp index e8425b373..881bde884 100644 --- a/src/commands/CmdVersion.cpp +++ b/src/commands/CmdVersion.cpp @@ -72,12 +72,12 @@ int CmdVersion::execute (std::string& output) link.add (Column::factory ("string", "")); link.set (link.addRow (), 0, STRING_CMD_VERSION_DOCS); - Color bold ("bold"); + Color bold; + if (context.color ()) + bold = Color ("bold"); out << "\n" - << format (STRING_CMD_VERSION_BUILT, - (context.color () ? bold.colorize (PACKAGE) : PACKAGE), - (context.color () ? bold.colorize (VERSION) : VERSION)) + << format (STRING_CMD_VERSION_BUILT, bold.colorize (PACKAGE), bold.colorize (VERSION)) #if defined (DARWIN) << "darwin"