diff options
author | Frederic Culot <calcurse@culot.org> | 2007-04-14 18:46:54 +0000 |
---|---|---|
committer | Frederic Culot <calcurse@culot.org> | 2007-04-14 18:46:54 +0000 |
commit | d70c7f96a1df61763b9907574944acb80c14eb9c (patch) | |
tree | 088380390fa8111d150ed45782ed45a041abbfda | |
parent | 9e8689f58b4e217a4d86ee2ee11acc7adf15522a (diff) | |
download | calcurse-d70c7f96a1df61763b9907574944acb80c14eb9c.tar.gz calcurse-d70c7f96a1df61763b9907574944acb80c14eb9c.zip |
bugfix: forgot to save item state for endless recurrent appointments
-rwxr-xr-x | src/recur.c | 19 |
1 files 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. */ |