aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2006-09-03 09:01:25 +0000
committerFrederic Culot <calcurse@culot.org>2006-09-03 09:01:25 +0000
commitecd04e58a7aa31b5c081d0d451ef5b38fceeae0e (patch)
tree3faefe4d041cfa1594d1a1428ff889f2c23f5073 /src
parent60d6f2c6f54fdc82476d6248f0412dc1cb346d09 (diff)
downloadcalcurse-ecd04e58a7aa31b5c081d0d451ef5b38fceeae0e.tar.gz
calcurse-ecd04e58a7aa31b5c081d0d451ef5b38fceeae0e.zip
todo_args() updated to display priorities
Diffstat (limited to 'src')
-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);
}