tweaks: remove two superfluous assignments
The digit counter will be reset to zero the next time when <Esc> is pressed, and the byte holder gets re-initialized when the next first digit is pressed. And the escape counter is reset to zero after returning from a result-giving call of get_byte_kbinput().
Этот коммит содержится в:
родитель
b41405233f
Коммит
e4fa0b54a2
@ -1346,12 +1346,6 @@ int get_byte_kbinput(int kbinput)
|
||||
break;
|
||||
}
|
||||
|
||||
/* If we have a result, reset the counter and the byte holder. */
|
||||
if (retval != ERR) {
|
||||
digit_count = 0;
|
||||
byte = 0;
|
||||
}
|
||||
|
||||
return retval;
|
||||
}
|
||||
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user