From 8544e4a57016e370a25bb7038cc3ef11c81eb9c3 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Wed, 30 Aug 2017 16:24:04 +0200 Subject: Rename keys_getch() to keys_get() Signed-off-by: Lukas Fleischer --- src/notify.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/notify.c') 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; -- cgit v1.2.3-54-g00ecf