mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-28 04:27:20 +02:00
- Added caseless keyword comparison to the autocolorization rules.
This commit is contained in:
parent
a8ac82ca22
commit
88b12bc66a
1 changed files with 3 additions and 2 deletions
|
@ -210,8 +210,9 @@ void autoColorize (T& task, Text::color& fg, Text::color& bg)
|
|||
{
|
||||
if (it->first.substr (0, 14) == "color.keyword.")
|
||||
{
|
||||
std::string value = it->first.substr (14, std::string::npos);
|
||||
if (task.getDescription ().find (value) != std::string::npos)
|
||||
std::string value = lowerCase (it->first.substr (14, std::string::npos));
|
||||
std::string desc = lowerCase (task.getDescription ());
|
||||
if (desc.find (value) != std::string::npos)
|
||||
{
|
||||
fg = gsFg[it->first];
|
||||
bg = gsBg[it->first];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue