From 53f0f1d2e375ed800fe9235d359a119f0eee592e Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Sun, 3 Sep 2017 16:30:39 +0200 Subject: Add a function to wait for any key press Introduce a new function keys_wait_for_any_key() and use it instead of wgetch() whenever the return value is discarded. Signed-off-by: Lukas Fleischer --- src/ui-calendar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ui-calendar.c') diff --git a/src/ui-calendar.c b/src/ui-calendar.c index c412dc0..419f7da 100644 --- a/src/ui-calendar.c +++ b/src/ui-calendar.c @@ -658,7 +658,7 @@ void ui_calendar_change_day(int datefmt) } if (wrong_day) { status_mesg(mesg_line1, mesg_line2); - wgetch(win[KEY].p); + keys_wait_for_any_key(win[KEY].p); } } } -- cgit v1.2.3-54-g00ecf