Commit 8762bdeb authored by Rafaël Carré's avatar Rafaël Carré

fix zsh completion

parent 749fa2f4
......@@ -123,7 +123,7 @@ void ParseModules( mumap &mods, mcmap &mods2 )
/* Exclude empty plugins (submodules don't have config options, they
* are stored in the parent module) */
if( p_module->b_submodule )
if( p_module->parent )
continue;
// p_item = ((module_t *)p_module->p_parent)->p_config;
else
......@@ -186,7 +186,7 @@ void PrintModuleList( mumap &mods, mcmap &mods2 )
p_module->psz_object_name ) );
}
} while( i_items++ < p_module->i_config_items && p_config++ );
if( p_module->b_submodule )
if( p_module->parent )
continue;
printf( "%s ", p_module->psz_object_name );
}
......@@ -415,11 +415,13 @@ void PrintOption( char *psz_option, char i_short, char *psz_exclusive,
{
while( (foo = strchr( psz_text, ':' ))) *foo=';';
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='\'';
while( (foo = strchr( psz_longtext, '`' ))) *foo='\'';
}
if( !psz_longtext ||
strchr( psz_longtext, '\n' ) ||
......
......@@ -61,7 +61,7 @@ fi
[ -z "$CXX" ] && CXX=g++
ZSH_BUILD="$CXX $CXXFLAGS -D__LIBVLC__ -DHAVE_CONFIG_H -I$BUILDDIR -I$BUILDDIR/include -I../../include zsh.cpp $LIBVLC $LIBVLCCORE -o zsh_gen"
ZSH_BUILD="$CXX $CXXFLAGS -DHAVE_CONFIG_H -I$BUILDDIR -I$BUILDDIR/include -I../../include zsh.cpp $LIBVLC $LIBVLCCORE -o zsh_gen"
echo $ZSH_BUILD
echo
......
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