src/apoint.c: Resize duration input field
Now that we support more powerful duration strings, we should also resize the input field for duration strings. Twelve characters is enough space for "+999d23h59m". Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
parent
4ff3bb9d4f
commit
6e5ae6562d
@ -154,6 +154,7 @@ void
|
||||
apoint_add (void)
|
||||
{
|
||||
#define LTIME 6
|
||||
#define LDUR 12
|
||||
char *mesg_1 =
|
||||
_("Enter start time ([hh:mm]), leave blank for an all-day event : ");
|
||||
char *mesg_2 =
|
||||
@ -208,7 +209,7 @@ apoint_add (void)
|
||||
for (;;)
|
||||
{
|
||||
status_mesg (mesg_2, "");
|
||||
if (getstring (win[STA].p, item_time, LTIME, 0, 1) != GETSTRING_ESC)
|
||||
if (getstring (win[STA].p, item_time, LDUR, 0, 1) != GETSTRING_ESC)
|
||||
{
|
||||
if (*item_time == '+' && parse_duration (item_time + 1,
|
||||
&apoint_duration) == 1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user