From 88b12bc66a47a577bded54e8319c9e1935a05e80 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Wed, 11 Jun 2008 01:47:11 -0400 Subject: [PATCH] - Added caseless keyword comparison to the autocolorization rules. --- src/rules.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/rules.cpp b/src/rules.cpp index 8d727fced..6f2657692 100644 --- a/src/rules.cpp +++ b/src/rules.cpp @@ -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];