From 6e5ae6562dae8fa868f88cfa024c327476b1a530 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Wed, 5 Oct 2011 11:38:08 +0200 Subject: 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 --- src/apoint.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/apoint.c') diff --git a/src/apoint.c b/src/apoint.c index 174d1a9..d2394b9 100644 --- a/src/apoint.c +++ b/src/apoint.c @@ -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) -- cgit v1.2.3-54-g00ecf