Use a separate field for the completed status
Add a new field that indicates whether a todo item is completed or not instead of encoding completed todo items by negative priorities. Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
This commit is contained in:
@@ -311,7 +311,7 @@ static void pcal_export_todo(FILE * stream)
|
||||
fputs("#\n# Todos\n#\n", stream);
|
||||
LLIST_FOREACH(&todolist, i) {
|
||||
struct todo *todo = LLIST_TS_GET_DATA(i);
|
||||
if (todo->id < 0) /* completed items */
|
||||
if (todo->completed)
|
||||
continue;
|
||||
|
||||
fputs("note all ", stream);
|
||||
|
||||
Reference in New Issue
Block a user