summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2008-04-04 21:30:12 +0000
committerFrederic Culot <calcurse@culot.org>2008-04-04 21:30:12 +0000
commit7a2a68de27459d3baab0c4fdeba03e7be0e5e47e (patch)
treed28660eed09da6aa4077e949908f49ae012d300a
parent0caec16e809f741ceb77d68135a9fd3adde8aac1 (diff)
downloadcalcurse-7a2a68de27459d3baab0c4fdeba03e7be0e5e47e.zip
small bugfixes
-rwxr-xr-xsrc/args.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/args.c b/src/args.c
index ca84cb6..0dd196f 100755
--- a/src/args.c
+++ b/src/args.c
@@ -1,4 +1,4 @@
-/* $calcurse: args.c,v 1.27 2007/10/16 19:09:18 culot Exp $ */
+/* $calcurse: args.c,v 1.28 2008/04/04 21:30:12 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -238,7 +238,7 @@ app_arg(int add_line, date_t *day, long date)
arg_print_date(today);
print_date = false;
}
- fputs(" o ", stdout);
+ fputs(" * ", stdout);
fputs(re->mesg, stdout); fputs("\n", stdout);
}
}
@@ -254,7 +254,7 @@ app_arg(int add_line, date_t *day, long date)
arg_print_date(today);
print_date = false;
}
- fputs(" o ",stdout);
+ fputs(" * ",stdout);
fputs(j->mesg,stdout); fputs("\n",stdout);
}
}
@@ -352,7 +352,8 @@ date_arg(char *ddate, int add_line)
day.mm = t.tm_mon + 1;
day.yyyy = t.tm_year + 1900;
app_found = app_arg(add_line, &day, 0);
- add_line = app_found;
+ if (app_found)
+ add_line = 1;
t.tm_mday++;
mktime(&t);
}