diff options
author | Lukas Fleischer <lfleischer@calcurse.org> | 2016-01-17 22:46:24 +0100 |
---|---|---|
committer | Lukas Fleischer <lfleischer@calcurse.org> | 2016-01-18 18:08:34 +0100 |
commit | beea88e5feb6f14b4912c6aa4878c39a7632977c (patch) | |
tree | 6559c7090a687a4b96319b9bc1539050f913f27a /src/pcal.c | |
parent | 1a4bf2b0a2a54393c401522611f85c2637d1de88 (diff) | |
download | calcurse-beea88e5feb6f14b4912c6aa4878c39a7632977c.zip |
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>
Diffstat (limited to 'src/pcal.c')
-rw-r--r-- | src/pcal.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |