diff options
author | Frederic Culot <calcurse@culot.org> | 2006-09-03 09:01:25 +0000 |
---|---|---|
committer | Frederic Culot <calcurse@culot.org> | 2006-09-03 09:01:25 +0000 |
commit | ecd04e58a7aa31b5c081d0d451ef5b38fceeae0e (patch) | |
tree | 3faefe4d041cfa1594d1a1428ff889f2c23f5073 | |
parent | 60d6f2c6f54fdc82476d6248f0412dc1cb346d09 (diff) | |
download | calcurse-ecd04e58a7aa31b5c081d0d451ef5b38fceeae0e.tar.gz calcurse-ecd04e58a7aa31b5c081d0d451ef5b38fceeae0e.zip |
todo_args() updated to display priorities
-rwxr-xr-x | src/args.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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); } |