mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Bug
- Fixed problem with the 'undo' command not observing the rc.color or the rc._forcecolor settings.
This commit is contained in:
parent
d890e05298
commit
233a6ae951
2 changed files with 7 additions and 2 deletions
|
@ -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")
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue