mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
Fix for how fish parses the double quote character
darcs-hash:20060131214201-ac50b-d921c2c74fa40723ae064a90d445258aa41ec94f.gz
This commit is contained in:
parent
028e1f36a1
commit
0eab394c24
1 changed files with 1 additions and 19 deletions
20
common.c
20
common.c
|
@ -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 );
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue