aboutsummaryrefslogtreecommitdiffhomepage
path: root/common.c
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-02-01 07:42:01 +1000
committerGravatar axel <axel@liljencrantz.se>2006-02-01 07:42:01 +1000
commit0eab394c24959d132a8f8223c9b471d9e878a023 (patch)
tree40cd64ca854ebf67585492043924f821dc3fdaee /common.c
parent028e1f36a1d96d321fab65005d56304ab31df73a (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.c20
1 files changed, 1 insertions, 19 deletions
diff --git a/common.c b/common.c
index 5226588c..d222d2bc 100644
--- a/common.c
+++ b/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 );
}