display_item_date(): Support punctual appointments
Display appointments having the same starting date as ending date using a specific format that hides the end time ("12:00" instead of "12:00 -> 12:00"). Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
parent
9e86e258f2
commit
e8e73e223b
@ -416,8 +416,9 @@ display_item_date(struct day_item *day, int incolor, long date, int y,
|
||||
ch_recur = (day->type == RECUR_EVNT ||
|
||||
day->type == RECUR_APPT) ? '*' : '-';
|
||||
ch_notify = (day_item_get_state(day) & APOINT_NOTIFY) ? '!' : ' ';
|
||||
mvwprintw(win, y, x, " %c%c%s -> %s", ch_recur, ch_notify,
|
||||
a_st, a_end);
|
||||
mvwprintw(win, y, x, " %c%c%s", ch_recur, ch_notify, a_st);
|
||||
if (apt_tmp.dur)
|
||||
mvwprintw(win, y, x + 3 + strlen(a_st), " -> %s", a_end);
|
||||
if (incolor == 0)
|
||||
custom_remove_attr(win, ATTR_HIGHEST);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user