From beea88e5feb6f14b4912c6aa4878c39a7632977c Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Sun, 17 Jan 2016 22:46:24 +0100 Subject: 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 --- src/pcal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pcal.c') diff --git a/src/pcal.c b/src/pcal.c index db85e1c..1c76aa0 100644 --- a/src/pcal.c +++ b/src/pcal.c @@ -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); -- cgit v1.2.3