- Fixed problem with the 'undo' command not observing the rc.color or the
  rc._forcecolor settings.
This commit is contained in:
Paul Beckingham 2010-08-02 01:00:20 -04:00
parent d890e05298
commit 233a6ae951
2 changed files with 7 additions and 2 deletions

View file

@ -47,6 +47,8 @@
and overdue.
+ Fixed problem with command line configuration overrides that had no
values.
+ Fixed problem with the 'undo' command not observing the rc.color or the
rc._forcecolor settings.
------ old releases ------------------------------

View file

@ -702,8 +702,11 @@ void TDB::undo ()
Date lastChange (atoi (when.c_str ()));
// Set the colors.
Color color_red (context.config.get ("color.undo.before"));
Color color_green (context.config.get ("color.undo.after"));
bool useColor = context.config.getBoolean ("color") ||
context.config.getBoolean ("_forcecolor") ? true : false;
Color color_red (useColor ? context.config.get ("color.undo.before") : "");
Color color_green (useColor ? context.config.get ("color.undo.after") : "");
if (context.config.get ("undo.style") == "side")
{