lineedit: REALLY fix compile error now
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
4dc08262cf
commit
1f6d2307ba
@ -1662,6 +1662,9 @@ 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 {
|
||||||
|
#if ENABLE_FEATURE_EDITING_ASK_TERMINAL || ENABLE_FEATURE_ASSUME_UNICODE
|
||||||
|
poll_again:
|
||||||
|
#endif
|
||||||
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
|
||||||
@ -1686,7 +1689,7 @@ static int lineedit_read_key(char *read_key_buffer)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
continue;
|
goto poll_again;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -1700,7 +1703,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;
|
||||||
continue;
|
goto poll_again;
|
||||||
}
|
}
|
||||||
ic = wc;
|
ic = wc;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user