mirror of
https://github.com/sheumann/hush.git
synced 2025-01-08 18:30:27 +00:00
less: fix numeric input
Signed-off-by: Ron Yorston <rmy@pobox.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
670c3f7822
commit
ae1a9e899e
@ -1314,7 +1314,7 @@ static void number_process(int first_digit)
|
||||
i = 1;
|
||||
while (i < sizeof(num_input)-1) {
|
||||
keypress = less_getch(i + 1);
|
||||
if ((unsigned)keypress > 255 || !isdigit(num_input[i]))
|
||||
if ((unsigned)keypress > 255 || !isdigit(keypress))
|
||||
break;
|
||||
num_input[i] = keypress;
|
||||
bb_putchar(keypress);
|
||||
|
Loading…
Reference in New Issue
Block a user