aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
Diffstat (limited to 'libbb')
-rw-r--r--libbb/lineedit.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libbb/lineedit.c b/libbb/lineedit.c
index 9c6454daf..42185dc56 100644
--- a/libbb/lineedit.c
+++ b/libbb/lineedit.c
@@ -1662,7 +1662,6 @@ static int lineedit_read_key(char *read_key_buffer)
1662 pfd.fd = STDIN_FILENO; 1662 pfd.fd = STDIN_FILENO;
1663 pfd.events = POLLIN; 1663 pfd.events = POLLIN;
1664 do { 1664 do {
1665 poll_again:
1666 if (read_key_buffer[0] == 0) { 1665 if (read_key_buffer[0] == 0) {
1667 /* Wait for input. Can't just call read_key, 1666 /* Wait for input. Can't just call read_key,
1668 * it returns at once if stdin 1667 * it returns at once if stdin
@@ -1687,7 +1686,7 @@ static int lineedit_read_key(char *read_key_buffer)
1687 } 1686 }
1688 } 1687 }
1689 } 1688 }
1690 goto poll_again; 1689 continue;
1691 } 1690 }
1692#endif 1691#endif
1693 1692
@@ -1701,7 +1700,7 @@ static int lineedit_read_key(char *read_key_buffer)
1701 unicode_buf[unicode_idx] = '\0'; 1700 unicode_buf[unicode_idx] = '\0';
1702 if (mbstowcs(&wc, unicode_buf, 1) != 1 && unicode_idx < MB_CUR_MAX) { 1701 if (mbstowcs(&wc, unicode_buf, 1) != 1 && unicode_idx < MB_CUR_MAX) {
1703 delay = 50; 1702 delay = 50;
1704 goto poll_again; 1703 continue;
1705 } 1704 }
1706 ic = wc; 1705 ic = wc;
1707 } 1706 }