mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Bug #515
- Fixed bug #515, which displayed an incorrect message after duplicating a non-existent task (thanks to Peter De Poorter).
This commit is contained in:
parent
d7de67d242
commit
6ef5650129
3 changed files with 10 additions and 2 deletions
|
@ -7,6 +7,8 @@
|
|||
color.burndown.done colors.
|
||||
+ Added feature #546, which is a 'count' command that counts tasks, and is
|
||||
intended to help scripts that manipulate task output.
|
||||
+ Fixed bug #515, which displayed an incorrect message after duplicating a
|
||||
non-existent task (thanks to Peter De Poorter).
|
||||
+ Fixed bug #529, where the 'depends' attribute was not mentioned in the
|
||||
task man page (thanks to Dirk Deimeke).
|
||||
+ Fixed bug #535 which omitted the holidays-NO.rc file from the packages
|
||||
|
|
|
@ -2011,7 +2011,12 @@ int handleDuplicate (std::string& outs)
|
|||
++count;
|
||||
}
|
||||
|
||||
if (context.config.getBoolean ("echo.command"))
|
||||
if (tasks.size () == 0)
|
||||
{
|
||||
out << "No matches.\n";
|
||||
rc = 1;
|
||||
}
|
||||
else if (context.config.getBoolean ("echo.command"))
|
||||
{
|
||||
#ifdef FEATURE_NEW_ID
|
||||
// All this, just for an id number.
|
||||
|
|
|
@ -672,7 +672,8 @@ int handleInfo (std::string& outs)
|
|||
<< "\n";
|
||||
}
|
||||
|
||||
if (! tasks.size ()) {
|
||||
if (! tasks.size ())
|
||||
{
|
||||
out << "No matches.\n";
|
||||
rc = 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue