about summary refs log tree commit diff stats
path: root/src/ui/core.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-01-15 23:29:48 +0000
committerJames Booth <boothj5@gmail.com>2015-01-15 23:29:48 +0000
commit65fc4bcd9ff8e92c0f87e1c9520974a805a9ceac (patch)
tree5be3f08e021331bec05964e653b7b8ec8884ab55 /src/ui/core.c
parent22e9be4a5f0bca731b6e12b6f07a1407c1b77111 (diff)
downloadprofani-tty-65fc4bcd9ff8e92c0f87e1c9520974a805a9ceac.tar.gz
Pass pointers to inp_get_char
Diffstat (limited to 'src/ui/core.c')
-rw-r--r--src/ui/core.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/ui/core.c b/src/ui/core.c
index 70a6f95f..9ded610b 100644
--- a/src/ui/core.c
+++ b/src/ui/core.c
@@ -181,19 +181,20 @@ ui_close(void)
 char*
 ui_readline(void)
 {
-    int result = 0;
-    wint_t ch = inp_get_char(line, &result);
+    int key_type;
+    wint_t ch;
+    inp_get_char(line, &key_type, &ch);
 
     _win_handle_switch(ch);
 
     ProfWin *current = wins_get_current();
-    win_handle_page(current, ch, result);
+    win_handle_page(current, ch, key_type);
 
     if (ch == KEY_RESIZE) {
         ui_resize();
     }
 
-    if (ch != ERR && result != ERR) {
+    if (ch != ERR && key_type != ERR) {
         ui_reset_idle_time();
         ui_input_nonblocking(TRUE);
     } else {