Commit e316387a authored by Rafaël Carré's avatar Rafaël Carré

Fixes zsh completion. Same as [17801], didn't committed back then because it...

Fixes zsh completion. Same as  [17801], didn't committed back then because it wasn't compiling on trunk.
parent 408b9c7a
...@@ -406,11 +406,19 @@ void PrintOption( char *psz_option, char i_short, char *psz_exclusive, ...@@ -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 *psz_text, char *psz_longtext, char *psz_args )
{ {
char *foo; 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 || if( !psz_longtext ||
strchr( psz_longtext, '\n' ) || strchr( psz_longtext, '\n' ) ||
strchr( psz_longtext, '(' ) ) psz_longtext = psz_text; strchr( psz_longtext, '(' ) ) psz_longtext = psz_text;
if( psz_text )
while( (foo = strchr( psz_text, '"' ))) *foo='\'';
if( i_short ) if( i_short )
{ {
if( !psz_exclusive ) psz_exclusive = ""; 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