]> git.sesse.net Git - vlc/commitdiff
Fixes zsh completion. Same as [17801], didn't committed back then because it wasn...
authorRafaël Carré <funman@videolan.org>
Mon, 10 Sep 2007 11:04:42 +0000 (11:04 +0000)
committerRafaël Carré <funman@videolan.org>
Mon, 10 Sep 2007 11:04:42 +0000 (11:04 +0000)
extras/zsh.cpp

index 109eb11eff15f6e7e46c889dcfb110fc44aed4dd..a67570367a4da8fc673259357f3a1c25f390efd6 100644 (file)
@@ -406,11 +406,19 @@ void PrintOption( char *psz_option, char i_short, char *psz_exclusive,
                    char *psz_text, char *psz_longtext, char *psz_args )
 {
     char *foo;
+    if( psz_text )
+    {
+        while( (foo = strchr( psz_text, ':' ))) *foo=';';
+        while( (foo = strchr( psz_text, '"' ))) *foo='\'';
+    }
+    if( psz_longtext )
+    {
+        while( (foo = strchr( psz_longtext, ':' ))) *foo=';';
+        while( (foo = strchr( psz_longtext, '"' ))) *foo='\'';
+    }
     if( !psz_longtext ||
         strchr( psz_longtext, '\n' ) ||
         strchr( psz_longtext, '(' ) ) psz_longtext = psz_text;
-    if( psz_text )
-        while( (foo = strchr( psz_text, '"' ))) *foo='\'';
     if( i_short )
     {
         if( !psz_exclusive ) psz_exclusive = "";