nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit e4fa0b54a2a62f2034af607f77cad368c55da58c
parent b41405233f901a54a79669dfe5387a32614992b8
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Mon, 20 Jul 2020 16:28:36 +0200

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().

Diffstat:
Msrc/winio.c | 6------
1 file changed, 0 insertions(+), 6 deletions(-)

diff --git 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; }