diff options
author | toni <toni@devlap.local> | 2015-11-16 22:30:32 +0100 |
---|---|---|
committer | toni <toni@devlap.local> | 2015-11-16 22:30:32 +0100 |
commit | 5dcfb21b85391ddaace3ec7e2161859661894597 (patch) | |
tree | 492f651f3dc588523730f0edf807d69de05d91b7 /src/ui_input.c | |
parent | 99dfc48c542ec59c9541faa33c8895bfa471089b (diff) |
fixed wgetch key loop and wtimeout bug
Diffstat (limited to 'src/ui_input.c')
-rw-r--r-- | src/ui_input.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/ui_input.c b/src/ui_input.c index b32570b..9c53330 100644 --- a/src/ui_input.c +++ b/src/ui_input.c @@ -121,7 +121,7 @@ print_input(WINDOW *win, struct input *a) } int -activate_input(WINDOW *win, struct input *a) +activate_input(struct input *a) { if (a == NULL) return (UICB_ERR_UNDEF); curs_set(1); @@ -146,7 +146,6 @@ add_input(WINDOW *win, struct input *a, int key) ++a->input_len; a->cur_pos = (a->cur_pos+1 < a->width ? a->cur_pos+1 : a->cur_pos); ui_set_cur(a->x + strlen(a->prompt) + a->cur_pos, a->y); - ui_thrd_force_update(); return (UICB_OK); } @@ -168,7 +167,6 @@ del_input(WINDOW *win, struct input *a) } mvwprintw(win, a->y, a->x + a->cur_pos + strlen(a->prompt), "_"); ui_set_cur(a->x + strlen(a->prompt) + a->cur_pos, a->y); - ui_thrd_force_update(); return (UICB_OK); } @@ -181,7 +179,6 @@ clear_input(WINDOW *win, struct input *a) a->input_pos = 0; a->cur_pos = 0; ui_set_cur(a->x + strlen(a->prompt) + a->cur_pos, a->y); - ui_thrd_force_update(); return (UICB_OK); } |