mirror of
https://github.com/sheumann/hush.git
synced 2025-01-03 00:31:16 +00:00
lineedit: compile fix
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
00f0ef4a0c
commit
4dc08262cf
@ -1662,7 +1662,6 @@ static int lineedit_read_key(char *read_key_buffer)
|
|||||||
pfd.fd = STDIN_FILENO;
|
pfd.fd = STDIN_FILENO;
|
||||||
pfd.events = POLLIN;
|
pfd.events = POLLIN;
|
||||||
do {
|
do {
|
||||||
poll_again:
|
|
||||||
if (read_key_buffer[0] == 0) {
|
if (read_key_buffer[0] == 0) {
|
||||||
/* Wait for input. Can't just call read_key,
|
/* Wait for input. Can't just call read_key,
|
||||||
* it returns at once if stdin
|
* it returns at once if stdin
|
||||||
@ -1687,7 +1686,7 @@ static int lineedit_read_key(char *read_key_buffer)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
goto poll_again;
|
continue;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -1701,7 +1700,7 @@ static int lineedit_read_key(char *read_key_buffer)
|
|||||||
unicode_buf[unicode_idx] = '\0';
|
unicode_buf[unicode_idx] = '\0';
|
||||||
if (mbstowcs(&wc, unicode_buf, 1) != 1 && unicode_idx < MB_CUR_MAX) {
|
if (mbstowcs(&wc, unicode_buf, 1) != 1 && unicode_idx < MB_CUR_MAX) {
|
||||||
delay = 50;
|
delay = 50;
|
||||||
goto poll_again;
|
continue;
|
||||||
}
|
}
|
||||||
ic = wc;
|
ic = wc;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user