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:
parent
e8e73e223b
commit
616677fb34
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user