aboutsummaryrefslogtreecommitdiffhomepage
path: root/common.c
diff options
context:
space:
mode:
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 );
}