mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Bug Fix - blank annotations now disallowed
- Prevented blank annotations from being added, and the description being echoed as though it were the annotation applied (thanks to Bruce Dillahunty). - Added bug.annotate.t unit test to prevent regression.
This commit is contained in:
parent
8dd9690a65
commit
0fcaf85652
6 changed files with 73 additions and 10 deletions
|
@ -948,6 +948,9 @@ std::string handleColor (Config& conf)
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
std::string handleAnnotate (TDB& tdb, T& task, Config& conf)
|
||||
{
|
||||
if (task.getDescription () == "")
|
||||
throw std::string ("Cannot apply a blank annotation.");
|
||||
|
||||
std::stringstream out;
|
||||
std::vector <T> all;
|
||||
tdb.pendingT (all);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue