]> git.sesse.net Git - vlc/commitdiff
zsh.cpp: allow completion of submodules as well for module-type options
authorSigmund Augdal Helberg <sigmunau@videolan.org>
Mon, 25 Apr 2005 17:16:37 +0000 (17:16 +0000)
committerSigmund Augdal Helberg <sigmunau@videolan.org>
Mon, 25 Apr 2005 17:16:37 +0000 (17:16 +0000)
(this allows -A and -V to complete the dummy module

extras/zsh.cpp

index 8fc531ca187d6f5c78cda4d586dffab69fd1c2b5..376dce30ed834d14187072b49e7a3cc70346dd18 100644 (file)
@@ -158,13 +158,13 @@ mmap PrintModuleList( vlc_t *p_vlc )
 
         /* Exclude empty plugins (submodules don't have config options, they
          * are stored in the parent module) */
-        if( p_module->b_submodule )
-              continue;
 
         if( strcmp( p_module->psz_object_name, "main" ) )
         {
             modules_cap.insert( mpair( p_module->psz_capability,
                                        p_module->psz_object_name ) );
+          if( p_module->b_submodule )
+            continue;
             printf( "%s ", p_module->psz_object_name );
         }