summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsrc/args.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/args.c b/src/args.c
index ebc206f..28bc2f4 100755
--- a/src/args.c
+++ b/src/args.c
@@ -1,4 +1,4 @@
-/* $calcurse: args.c,v 1.3 2006/08/06 14:36:14 culot Exp $ */
+/* $calcurse: args.c,v 1.4 2006/09/03 09:01:25 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -188,11 +188,13 @@ void todo_arg(int colr)
{
struct todo_s *i;
int nb_tod;
+ char priority[MAX_LENGTH] = "";
nb_tod = load_todo(colr);
fputs(_("to do:\n"),stdout);
for (i = todolist; i != 0; i = i->next) {
- fputs(" - ",stdout);
+ sprintf(priority, "%d. ", i->id);
+ fputs(priority,stdout);
fputs(i->mesg,stdout);
fputs("\n",stdout);
}