From 2c5f590fed88d9d999d4f270f53e8687ab9d63f9 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 6 Dec 2009 11:48:09 -0500 Subject: [PATCH] Feature - Special tags - Implemented the 'nocolor' special tag. --- src/rules.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/rules.cpp b/src/rules.cpp index 44b484574..bea72ad1d 100644 --- a/src/rules.cpp +++ b/src/rules.cpp @@ -55,6 +55,10 @@ void initializeColorRules () //////////////////////////////////////////////////////////////////////////////// void autoColorize (Task& task, Color& c) { + // The special tag 'nocolor' overrides all auto colorization. + if (task.hasTag ("nocolor")) + return; + // Note: fg, bg already contain colors specifically assigned via command. // Note: These rules form a hierarchy - the last rule is King.