summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xChangeLog5
-rwxr-xr-xsrc/args.c5
2 files changed, 7 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index c2c0247..b3b4c9e 100755
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-06-26 Frederic Culot <frederic@culot.org>
+
+ * src/args.c: do not print todo items twice if -d and -t flags are
+ given (thanks Timo for reporting the bug)
+
2009-06-23 Frederic Culot <frederic@culot.org>
* src/io.c: missing 'T' letter added in DURATION field for ical
diff --git a/src/args.c b/src/args.c
index 12db2d8..90ecde7 100755
--- a/src/args.c
+++ b/src/args.c
@@ -1,4 +1,4 @@
-/* $calcurse: args.c,v 1.47 2009/06/23 09:05:15 culot Exp $ */
+/* $calcurse: args.c,v 1.48 2009/06/26 19:56:32 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -204,7 +204,6 @@ todo_arg (int priority, int print_note)
int title = 1;
char priority_str[BUFSIZ] = "";
- io_load_todo ();
for (i = todolist; i != 0; i = i->next)
{
if (priority == 0 || i->id == priority)
@@ -769,7 +768,6 @@ parse_args (int argc, char **argv, conf_t *conf)
custom_load_conf (conf, 0);
io_load_keys (conf->pager);
io_load_app ();
- io_load_todo ();
}
}
if (iflag)
@@ -788,6 +786,7 @@ parse_args (int argc, char **argv, conf_t *conf)
}
if (tflag)
{
+ io_load_todo ();
todo_arg (tnum, Nflag);
non_interactive = 1;
}