From d70c7f96a1df61763b9907574944acb80c14eb9c Mon Sep 17 00:00:00 2001 From: Frederic Culot Date: Sat, 14 Apr 2007 18:46:54 +0000 Subject: bugfix: forgot to save item state for endless recurrent appointments --- src/recur.c | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/src/recur.c b/src/recur.c index 48d5db6..01902df 100755 --- a/src/recur.c +++ b/src/recur.c @@ -1,4 +1,4 @@ -/* $calcurse: recur.c,v 1.24 2007/04/04 19:38:18 culot Exp $ */ +/* $calcurse: recur.c,v 1.25 2007/04/14 18:46:54 culot Exp $ */ /* * Calcurse - text-based organizer @@ -209,22 +209,19 @@ recur_apoint_write(recur_apoint_llist_node_t *o, FILE *f) if (t == 0) { /* We have an endless recurrent appointment. */ fprintf(f, " {%d%c", o->rpt->freq, recur_def2char(o->rpt->type)); - if (o->exc != 0) - recur_write_exc(o->exc, f); - fprintf(f, "} |%s\n", o->mesg); } else { lt = localtime(&t); fprintf(f, " {%d%c -> %02u/%02u/%04u", o->rpt->freq, recur_def2char(o->rpt->type), lt->tm_mon + 1, lt->tm_mday, 1900 + lt->tm_year); - if (o->exc != 0) - recur_write_exc(o->exc, f); - if (o->state & APOINT_NOTIFY) - fprintf(f, "} !"); - else - fprintf(f, "} |"); - fprintf(f, "%s\n", o->mesg); } + if (o->exc != 0) + recur_write_exc(o->exc, f); + if (o->state & APOINT_NOTIFY) + fprintf(f, "} !"); + else + fprintf(f, "} |"); + fprintf(f, "%s\n", o->mesg); } /* Writting of a recursive event into file. */ -- cgit v1.2.3-54-g00ecf