From 136e99de62a1a7142e1cdc6e01b66a571002ab09 Mon Sep 17 00:00:00 2001 From: axel Date: Fri, 3 Nov 2006 10:34:57 +1000 Subject: [PATCH] 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 --- reader.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reader.c b/reader.c index 7dec57313..e7c37c6c9 100644 --- a/reader.c +++ b/reader.c @@ -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 ); }