diff options
author | Lukas Fleischer <calcurse@cryptocrack.de> | 2013-05-14 12:01:42 +0200 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2013-05-14 12:03:04 +0200 |
commit | 616677fb347607a84d4879d78d0a2dc8e1bc3f91 (patch) | |
tree | 50c3841840fa5a438f0a4f777b8089bf5c9f54aa | |
parent | e8e73e223b560b08b8ff6d0046b6726f2e92a5c5 (diff) | |
download | calcurse-616677fb347607a84d4879d78d0a2dc8e1bc3f91.tar.gz calcurse-616677fb347607a84d4879d78d0a2dc8e1bc3f91.zip |
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>
-rw-r--r-- | src/ui-day.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ui-day.c b/src/ui-day.c index 647d038..a9dca9a 100644 --- a/src/ui-day.c +++ b/src/ui-day.c @@ -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) |