Fix bugs causing all unmapped inputs below 31 to be interpreted as newlines. Thanks to Reuben Thomas for the report.

darcs-hash:20061103003457-ac50b-5f3fee63e211b12014e40dc3d8d8c94eaa22f24d.gz
This commit is contained in:
axel 2006-11-03 10:34:57 +10:00
parent c41986a63f
commit 136e99de62

View File

@ -2001,6 +2001,7 @@ wchar_t *reader_readline()
while( 1 )
{
c=input_readch();
if( ( (!wchar_private(c))) && (c>31) && (c != 127) )
{
@ -2523,7 +2524,7 @@ wchar_t *reader_readline()
/* Other, if a normal character, we add it to the command */
default:
{
if( (!wchar_private(c)) && (( (c>31) || (c=L'\n'))&& (c != 127)) )
if( (!wchar_private(c)) && (( (c>31) || (c==L'\n'))&& (c != 127)) )
{
insert_char( c );
}