fix breakage of ASCII character sequence mode introduced with the UTF-8
sequence support git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2103 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
a98fd75b32
commit
0317c86a8a
|
@ -171,10 +171,16 @@ int get_kbinput(WINDOW *win, bool *meta_key, bool *func_key)
|
||||||
#endif
|
#endif
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/* If we have a complete sequence now, we should interpret its
|
||||||
|
* translated value instead of the value of the last character
|
||||||
|
* we got. */
|
||||||
|
if (retval != ERR)
|
||||||
|
kbinput = retval;
|
||||||
|
|
||||||
/* If we got a one-character sequence and it's outside the ASCII
|
/* If we got a one-character sequence and it's outside the ASCII
|
||||||
* range, set func_key to TRUE. */
|
* range, set func_key to TRUE. */
|
||||||
if (seq == NO_SEQ) {
|
if (seq == NO_SEQ) {
|
||||||
if (retval > 255)
|
if (kbinput > 255)
|
||||||
*func_key = TRUE;
|
*func_key = TRUE;
|
||||||
/* If we got a multi-character sequence, read it in, including
|
/* If we got a multi-character sequence, read it in, including
|
||||||
* the initial character, as verbatim input. */
|
* the initial character, as verbatim input. */
|
||||||
|
|
Loading…
Reference in New Issue