Bug
- Fixed problem with the 'undo' command not observing the rc.color or the rc._forcecolor settings.
This commit is contained in:
@@ -47,6 +47,8 @@
|
|||||||
and overdue.
|
and overdue.
|
||||||
+ Fixed problem with command line configuration overrides that had no
|
+ Fixed problem with command line configuration overrides that had no
|
||||||
values.
|
values.
|
||||||
|
+ Fixed problem with the 'undo' command not observing the rc.color or the
|
||||||
|
rc._forcecolor settings.
|
||||||
|
|
||||||
------ old releases ------------------------------
|
------ old releases ------------------------------
|
||||||
|
|
||||||
|
|||||||
@@ -702,8 +702,11 @@ void TDB::undo ()
|
|||||||
Date lastChange (atoi (when.c_str ()));
|
Date lastChange (atoi (when.c_str ()));
|
||||||
|
|
||||||
// Set the colors.
|
// Set the colors.
|
||||||
Color color_red (context.config.get ("color.undo.before"));
|
bool useColor = context.config.getBoolean ("color") ||
|
||||||
Color color_green (context.config.get ("color.undo.after"));
|
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")
|
if (context.config.get ("undo.style") == "side")
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user