aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui-calendar.c
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@calcurse.org>2017-09-03 16:30:39 +0200
committerLukas Fleischer <lfleischer@calcurse.org>2017-09-03 16:37:35 +0200
commit53f0f1d2e375ed800fe9235d359a119f0eee592e (patch)
tree024fb7cdb29e35df2c9d9c75a6f981d1d7dbba87 /src/ui-calendar.c
parent8373ecfe5137a42035ce472eb47e84391b10a2c4 (diff)
downloadcalcurse-53f0f1d2e375ed800fe9235d359a119f0eee592e.tar.gz
calcurse-53f0f1d2e375ed800fe9235d359a119f0eee592e.zip
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 <lfleischer@calcurse.org>
Diffstat (limited to 'src/ui-calendar.c')
-rw-r--r--src/ui-calendar.c2
1 files changed, 1 insertions, 1 deletions
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);
}
}
}