diff options
author | 2006-02-01 07:42:01 +1000 | |
---|---|---|
committer | 2006-02-01 07:42:01 +1000 | |
commit | 0eab394c24959d132a8f8223c9b471d9e878a023 (patch) | |
tree | 40cd64ca854ebf67585492043924f821dc3fdaee /common.c | |
parent | 028e1f36a1d96d321fab65005d56304ab31df73a (diff) |
Fix for how fish parses the double quote character
darcs-hash:20060131214201-ac50b-d921c2c74fa40723ae064a90d445258aa41ec94f.gz
Diffstat (limited to 'common.c')
-rw-r--r-- | common.c | 20 |
1 files changed, 1 insertions, 19 deletions
@@ -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 ); } |