aboutsummaryrefslogtreecommitdiffhomepage
path: root/reader.c
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-11-03 10:34:57 +1000
committerGravatar axel <axel@liljencrantz.se>2006-11-03 10:34:57 +1000
commit136e99de62a1a7142e1cdc6e01b66a571002ab09 (patch)
tree8a26072a74f2d2d5a7d8c06c57dcea79148644f7 /reader.c
parentc41986a63f3f28cd13be211eca8f87df4e0e0528 (diff)
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
Diffstat (limited to 'reader.c')
-rw-r--r--reader.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/reader.c b/reader.c
index 7dec5731..e7c37c6c 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 );
}