From e4fa0b54a2a62f2034af607f77cad368c55da58c Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Mon, 20 Jul 2020 16:28:36 +0200 Subject: [PATCH] tweaks: remove two superfluous assignments The digit counter will be reset to zero the next time when 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(). --- src/winio.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/winio.c b/src/winio.c index cc26c9d3..cf9a244b 100644 --- a/src/winio.c +++ b/src/winio.c @@ -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; }