mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
CmdPrepend
- Was appending, not prepending. Duh.
This commit is contained in:
parent
e5e0ac8ba3
commit
a559890368
1 changed files with 3 additions and 3 deletions
|
@ -77,7 +77,7 @@ int CmdPrepend::execute (std::string& output)
|
|||
task->id,
|
||||
task->get ("description"));
|
||||
|
||||
task->modify (Task::modAppend);
|
||||
task->modify (Task::modPrepend);
|
||||
|
||||
if (permission (*task, taskDifferences (before, *task) + question, filtered.size ()))
|
||||
{
|
||||
|
@ -97,7 +97,7 @@ int CmdPrepend::execute (std::string& output)
|
|||
std::vector <Task>::iterator sibling;
|
||||
for (sibling = siblings.begin (); sibling != siblings.end (); ++sibling)
|
||||
{
|
||||
sibling->modify (Task::modAppend);
|
||||
sibling->modify (Task::modPrepend);
|
||||
context.tdb2.modify (*sibling);
|
||||
++count;
|
||||
feedback_affected (STRING_CMD_PREPEND_TASK_R, *sibling);
|
||||
|
@ -106,7 +106,7 @@ int CmdPrepend::execute (std::string& output)
|
|||
// Prepend to the parent
|
||||
Task parent;
|
||||
context.tdb2.get (task->get ("parent"), parent);
|
||||
parent.modify (Task::modAppend);
|
||||
parent.modify (Task::modPrepend);
|
||||
context.tdb2.modify (parent);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue