From 51105720ab32faa4548655266ca0ae4c661f0701 Mon Sep 17 00:00:00 2001 From: James Booth Date: Thu, 15 Jan 2015 23:43:22 +0000 Subject: Moved input line to inputwin --- src/ui/core.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/ui/core.c') diff --git a/src/ui/core.c b/src/ui/core.c index 9ded610b..69701616 100644 --- a/src/ui/core.c +++ b/src/ui/core.c @@ -74,7 +74,6 @@ static char *win_title; -static char line[INP_WIN_MAX]; static int inp_size; #ifdef HAVE_LIBXSS @@ -183,8 +182,8 @@ ui_readline(void) { int key_type; wint_t ch; - inp_get_char(line, &key_type, &ch); + char *line = inp_get_char(&key_type, &ch); _win_handle_switch(ch); ProfWin *current = wins_get_current(); @@ -201,11 +200,7 @@ ui_readline(void) ui_input_nonblocking(FALSE); } - if (ch == '\n') { - return line; - } else { - return NULL; - } + return line; } void -- cgit 1.4.1-2-gfad0