Fix %(hash) formatting of events

Actually print the hash instead of raw object data.

Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
This commit is contained in:
Lukas Fleischer 2016-02-05 16:43:39 +01:00
parent 62f04c3f9a
commit 4ada3deda2

View File

@ -1511,9 +1511,9 @@ static void print_event_helper(const char *format, long day, struct event *ev,
break; break;
case FS_HASH: case FS_HASH:
if (rev) if (rev)
printf("%s", recur_event_tostr(rev)); printf("%s", recur_event_hash(rev));
else else
printf("%s", event_tostr(ev)); printf("%s", event_hash(ev));
break; break;
case FS_EOF: case FS_EOF:
return; return;