nano

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

commit f33796bee1e853d65afe69dcc4b0f588db0df9fa
parent e679c518b157e08b48038ea3e9a404acea0c2abd
Author: Benno Schulenberg <bensberg@justemail.net>
Date:   Fri, 24 Jun 2016 15:51:53 +0200

tweaks: elide an impossible case

Typing a Unicode code is always finished after at most six characters:
either retval == uni or retval == kbinput, but it can't be ERR.

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

diff --git a/src/winio.c b/src/winio.c @@ -1284,12 +1284,6 @@ long get_unicode_kbinput(int kbinput) if (retval == ERR) retval = uni; break; - default: - /* If there are more than six digits, return this character - * as the result. (Maybe we should produce an error - * instead?) */ - retval = kbinput; - break; } /* If we have a result, reset the Unicode digit counter and the