mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Color: Remove support for underscores in color values
Values like 'on_red' will no longer work. This feature has been deprecated since 2009.
This commit is contained in:
parent
8536dc9658
commit
99b650a3ba
1 changed files with 0 additions and 4 deletions
|
@ -100,11 +100,7 @@ Color::Color (const std::string& spec)
|
||||||
: _value (0)
|
: _value (0)
|
||||||
{
|
{
|
||||||
#ifdef FEATURE_COLOR
|
#ifdef FEATURE_COLOR
|
||||||
// By converting underscores to spaces, we inherently support the old "on_red"
|
|
||||||
// style of specifying background colors. We consider underscores to be
|
|
||||||
// deprecated.
|
|
||||||
std::string modifiable_spec = spec;
|
std::string modifiable_spec = spec;
|
||||||
std::replace (modifiable_spec.begin (), modifiable_spec.end (), '_', ' ');
|
|
||||||
|
|
||||||
// Split spec into words.
|
// Split spec into words.
|
||||||
std::vector <std::string> words;
|
std::vector <std::string> words;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue