Fix for how fish parses the double quote character

darcs-hash:20060131214201-ac50b-d921c2c74fa40723ae064a90d445258aa41ec94f.gz
This commit is contained in:
axel 2006-02-01 07:42:01 +10:00
parent 028e1f36a1
commit 0eab394c24

View file

@ -573,25 +573,7 @@ int my_wcswidth( const wchar_t *c )
wchar_t *quote_end( const wchar_t *in )
{
switch( *in )
{
case '"':
{
while(1)
{
in = wcschr( in+1, L'"' );
if( !in )
return 0;
if( *(in-1) != L'\\' )
return (wchar_t *)in;
}
}
case '\'':
{
return wcschr( in+1, L'\'' );
}
}
return 0;
return wcschr( in+1, *in );
}