diff options
author | axel <axel@liljencrantz.se> | 2006-11-03 10:34:57 +1000 |
---|---|---|
committer | axel <axel@liljencrantz.se> | 2006-11-03 10:34:57 +1000 |
commit | 136e99de62a1a7142e1cdc6e01b66a571002ab09 (patch) | |
tree | 8a26072a74f2d2d5a7d8c06c57dcea79148644f7 /reader.c | |
parent | c41986a63f3f28cd13be211eca8f87df4e0e0528 (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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 ); } |