Don't spin-loop in prompt().
This commit is contained in:
parent
f25e283f21
commit
e8ccd681e3
3 changed files with 8 additions and 7 deletions
4
ui.c
4
ui.c
|
|
@ -177,7 +177,7 @@ wint_t c;
|
|||
waddwstr(pwin, L" [y/N]? ");
|
||||
wattroff(pwin, A_BOLD);
|
||||
|
||||
while (input_char(&c) == ERR
|
||||
while (input_char(pwin, &c) == ERR
|
||||
#ifdef KEY_RESIZE
|
||||
|| (c == KEY_RESIZE)
|
||||
#endif
|
||||
|
|
@ -231,7 +231,7 @@ histent_t *histpos = NULL;
|
|||
wmove(pwin, 0, wcslen(msg) + 1 + pos);
|
||||
wrefresh(pwin);
|
||||
|
||||
if (input_char(&c) == ERR)
|
||||
if (input_char(pwin, &c) == ERR)
|
||||
continue;
|
||||
|
||||
switch (c) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue