mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +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.
|
||||
+ 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 ------------------------------
|
||||
|
||||
|
|
|
@ -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")
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue