Introduce macro DAY
DAY(t) is midnight (the day) of time_t t. Signed-off-by: Lars Henriksen <LarsHenriksen@get2net.dk> Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
This commit is contained in:
committed by
Lukas Fleischer
parent
0af69778b5
commit
3599766cee
@@ -668,7 +668,7 @@ static inline void key_generic_cmd(void)
|
||||
* The selected day need not be the (item) start day
|
||||
* for multi-day occurrences.
|
||||
*/
|
||||
day = update_time_in_date(item->start, 0, 0);
|
||||
day = DAY(item->start);
|
||||
if (item->type == RECUR_EVNT) {
|
||||
rev = item->item.rev;
|
||||
more = recur_prev_occurrence(rev->day, -1, rev->rpt,
|
||||
|
||||
Reference in New Issue
Block a user