summaryrefslogtreecommitdiff
path: root/src/recur.c
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2008-12-07 09:20:38 +0000
committerFrederic Culot <calcurse@culot.org>2008-12-07 09:20:38 +0000
commit639058740a44c6380258e0152f9916af1e53bb27 (patch)
tree4a011f1eef9f925740c9d0e701258e580ce65b9f /src/recur.c
parentcf5617e3378fc4c6089195c83fac0f8a7acb84fe (diff)
downloadcalcurse-639058740a44c6380258e0152f9916af1e53bb27.zip
Checks added while loading key bindings configuration.
Diffstat (limited to 'src/recur.c')
-rwxr-xr-xsrc/recur.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/recur.c b/src/recur.c
index 0207e9d..f6c46e8 100755
--- a/src/recur.c
+++ b/src/recur.c
@@ -1,4 +1,4 @@
-/* $calcurse: recur.c,v 1.39 2008/11/16 17:42:53 culot Exp $ */
+/* $calcurse: recur.c,v 1.40 2008/12/07 09:20:38 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -689,7 +689,7 @@ recur_repeat_item (conf_t *conf)
if (p->type != APPT && p->type != EVNT)
{
status_mesg (wrong_type_1, wrong_type_2);
- ch = keys_getch (win[STA].p);
+ ch = wgetch (win[STA].p);
return;
}
@@ -697,10 +697,10 @@ recur_repeat_item (conf_t *conf)
&& (ch != 'Y') && (ch != KEY_GENERIC_ESCAPE))
{
status_mesg (mesg_type_1, mesg_type_2);
- ch = keys_getch (win[STA].p);
+ ch = wgetch (win[STA].p);
ch = toupper (ch);
}
- if (ch == KEY_GENERIC_ESCAPE)
+ if (ch == ESCAPE)
{
return;
}
@@ -719,7 +719,7 @@ recur_repeat_item (conf_t *conf)
if (freq == 0)
{
status_mesg (mesg_wrong_freq, wrong_type_2);
- keys_getch (win[STA].p);
+ (void)wgetch (win[STA].p);
}
user_input[0] = '\0';
}
@@ -753,7 +753,7 @@ recur_repeat_item (conf_t *conf)
if (until < p->start)
{
status_mesg (mesg_older, wrong_type_2);
- keys_getch (win[STA].p);
+ (void)wgetch (win[STA].p);
date_entered = 0;
}
else
@@ -766,7 +766,7 @@ recur_repeat_item (conf_t *conf)
snprintf (outstr, BUFSIZ, mesg_wrong_2,
DATEFMT_DESC (conf->input_datefmt));
status_mesg (mesg_wrong_1, _(outstr));
- keys_getch (win[STA].p);
+ (void)wgetch (win[STA].p);
date_entered = 0;
}
}