aboutsummaryrefslogtreecommitdiffstats
path: root/src/notify.c
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@calcurse.org>2017-08-30 16:24:04 +0200
committerLukas Fleischer <lfleischer@calcurse.org>2017-08-30 16:26:10 +0200
commit8544e4a57016e370a25bb7038cc3ef11c81eb9c3 (patch)
tree1ff531030d1046b379d943e401afa39749e45782 /src/notify.c
parent273e32d43d72086ed9b0eeae9e83b2689b0f6154 (diff)
downloadcalcurse-8544e4a57016e370a25bb7038cc3ef11c81eb9c3.tar.gz
calcurse-8544e4a57016e370a25bb7038cc3ef11c81eb9c3.zip
Rename keys_getch() to keys_get()
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
Diffstat (limited to 'src/notify.c')
-rw-r--r--src/notify.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/notify.c b/src/notify.c
index 64ce0dc..ff5b2e2 100644
--- a/src/notify.c
+++ b/src/notify.c
@@ -778,7 +778,7 @@ void notify_config_bar(void)
KEY_GENERIC_QUIT, KEY_MOVE_UP, KEY_MOVE_DOWN, KEY_EDIT_ITEM
};
struct listbox lb;
- int ch;
+ int key;
clear();
listbox_init(&lb, 0, 0, notify_bar() ? row - 3 : row - 2, col,
@@ -793,8 +793,8 @@ void notify_config_bar(void)
wmove(win[STA].p, 0, 0);
wins_doupdate();
- while ((ch = keys_getch(win[KEY].p, NULL, NULL)) != KEY_GENERIC_QUIT) {
- switch (ch) {
+ while ((key = keys_get(win[KEY].p, NULL, NULL)) != KEY_GENERIC_QUIT) {
+ switch (key) {
case KEY_MOVE_DOWN:
listbox_sel_move(&lb, 1);
break;