Support punctual appointments in the UI

Allow for skipping the end date which means that a punctual appointment
will be created.

Implements FR#25.

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
Lukas Fleischer 2013-05-14 12:01:42 +02:00
parent e8e73e223b
commit 616677fb34

View File

@ -476,6 +476,10 @@ void ui_day_item_add(void)
if (getstring(win[STA].p, item_time, LDUR, 0, 1) ==
GETSTRING_ESC)
return;
if (strlen(item_time) == 0) {
apoint_duration = 0;
break;
}
if (*item_time == '+'
&& parse_duration(item_time + 1,
&apoint_duration) == 1)