Commit 6bc33200 authored by Rafaël Carré's avatar Rafaël Carré

Fixes zsh completion

parent 3a0f4098
......@@ -377,11 +377,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 = "";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment