summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2011-10-05 11:38:08 +0200
committerLukas Fleischer <calcurse@cryptocrack.de>2011-10-06 12:37:07 +0200
commit6e5ae6562dae8fa868f88cfa024c327476b1a530 (patch)
treee84e8f16306bdaa9c35a033603dc8fd0610ab05a /src
parent4ff3bb9d4fc5dcd38c4129b8e83b543212ee2a49 (diff)
downloadcalcurse-6e5ae6562dae8fa868f88cfa024c327476b1a530.tar.gz
calcurse-6e5ae6562dae8fa868f88cfa024c327476b1a530.zip
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>
Diffstat (limited to 'src')
-rw-r--r--src/apoint.c3
1 files changed, 2 insertions, 1 deletions
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)