From 4b988a705808217595fa9df9fce0c0e1b6e9b0da Mon Sep 17 00:00:00 2001 From: Ariadna Vigo Date: Tue, 29 Sep 2020 22:23:50 +0200 Subject: New delete mode implemented --- tasklst.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tasklst.c') diff --git a/tasklst.c b/tasklst.c index a684b2e..d22169e 100644 --- a/tasklst.c +++ b/tasklst.c @@ -159,6 +159,9 @@ task_lst_del_task(TaskLst *list, int i) if (next != NULL) next->prev = prev; + if (list->first == del) + list->first = next; + free(del); return 0; -- cgit v1.2.3