mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-26 02:13:38 +08:00
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:
parent
c41986a63f
commit
136e99de62
3
reader.c
3
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 );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user