diff --git a/doc/man/task.1 b/doc/man/task.1 index f2d4003ea..ce014a109 100644 --- a/doc/man/task.1 +++ b/doc/man/task.1 @@ -37,8 +37,7 @@ Adds an annotation to an existing task. .B denotate ID description Deletes an annotation for the specified task. If the provided description matches an annotation exactly, the corresponding annotation is deleted. If the provided description -matches an annotation partly (from the beginning), the first partly matched annotation -is deleted. +matches annotations partly, the first partly matched annotation is deleted. .TP .B info ID diff --git a/src/command.cpp b/src/command.cpp index bba9e0761..b71ae225c 100644 --- a/src/command.cpp +++ b/src/command.cpp @@ -2082,7 +2082,7 @@ int handleDenotate (std::string &outs) anno = i->value (); std::string::size_type loc = find (anno, desc, sensitive); - if (loc != std::string::npos && loc == 0) + if (loc != std::string::npos) { match = true; annotations.erase (i);