mirror of git://git.sv.gnu.org/nano.git
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.
This commit is contained in:
parent
e679c518b1
commit
f33796bee1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue