mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Enhancements - stop command
- Implemented stop command - Fixed bug in TDB that failed to truncate the pending file on update.
This commit is contained in:
parent
1551362d1e
commit
41e137a92c
3 changed files with 31 additions and 13 deletions
|
@ -312,8 +312,11 @@ int TDB::commit ()
|
|||
|
||||
// Write out all pending.
|
||||
if (fseek (mLocations[0].pending, 0, SEEK_SET) == 0)
|
||||
{
|
||||
ftruncate (fileno (mLocations[0].pending), 0);
|
||||
foreach (task, mPending)
|
||||
fputs (task->composeF4 ().c_str (), mLocations[0].pending);
|
||||
}
|
||||
}
|
||||
|
||||
return quantity;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue