Pass pointers to inp_get_char

This commit is contained in:
James Booth
2015-01-15 23:29:48 +00:00
parent 22e9be4a5f
commit 65fc4bcd9f
3 changed files with 27 additions and 28 deletions

View File

@@ -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 {