mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Bug Fix - #287
- Fixed bug #287 which caused color control codes to be written to the shadow file (thanks to Richard Querin).
This commit is contained in:
parent
62be3f8acb
commit
05f67db429
2 changed files with 5 additions and 2 deletions
|
@ -5,6 +5,8 @@
|
||||||
+ Added feature #282 that returns useful exit codes to the shell. Now a
|
+ 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
|
script can detect whether no tasks were returned by a report (thanks to
|
||||||
Pietro Cerutti).
|
Pietro Cerutti).
|
||||||
|
+ Fixed bug #287 that causes color control codes to be written to shadow
|
||||||
|
files (thanks to Richard Querin).
|
||||||
|
|
||||||
------ old releases ------------------------------
|
------ old releases ------------------------------
|
||||||
|
|
||||||
|
|
|
@ -255,8 +255,6 @@ void Context::shadow ()
|
||||||
|
|
||||||
std::string oldCurses = config.get ("curses");
|
std::string oldCurses = config.get ("curses");
|
||||||
std::string oldColor = config.get ("color");
|
std::string oldColor = config.get ("color");
|
||||||
config.set ("curses", "off");
|
|
||||||
config.set ("color", "off");
|
|
||||||
|
|
||||||
clear ();
|
clear ();
|
||||||
|
|
||||||
|
@ -267,6 +265,9 @@ void Context::shadow ()
|
||||||
split (args, command, ' ');
|
split (args, command, ' ');
|
||||||
|
|
||||||
initialize ();
|
initialize ();
|
||||||
|
config.set ("curses", "off");
|
||||||
|
config.set ("color", "off");
|
||||||
|
|
||||||
parse ();
|
parse ();
|
||||||
std::string result;
|
std::string result;
|
||||||
(void)dispatch (result);
|
(void)dispatch (result);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue