From 05f67db429829036990a846a58f4d9aff23526aa Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 29 Aug 2009 13:55:59 -0400 Subject: [PATCH] Bug Fix - #287 - Fixed bug #287 which caused color control codes to be written to the shadow file (thanks to Richard Querin). --- ChangeLog | 2 ++ src/Context.cpp | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index d91efe842..356016cca 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,8 @@ + Added feature #282 that returns useful exit codes to the shell. Now a script can detect whether no tasks were returned by a report (thanks to Pietro Cerutti). + + Fixed bug #287 that causes color control codes to be written to shadow + files (thanks to Richard Querin). ------ old releases ------------------------------ diff --git a/src/Context.cpp b/src/Context.cpp index 4ded9b1d5..a3553db32 100644 --- a/src/Context.cpp +++ b/src/Context.cpp @@ -255,8 +255,6 @@ void Context::shadow () std::string oldCurses = config.get ("curses"); std::string oldColor = config.get ("color"); - config.set ("curses", "off"); - config.set ("color", "off"); clear (); @@ -267,6 +265,9 @@ void Context::shadow () split (args, command, ' '); initialize (); + config.set ("curses", "off"); + config.set ("color", "off"); + parse (); std::string result; (void)dispatch (result);