diff --git a/complete.c b/complete.c index fa464dc5e..ba7de179a 100644 --- a/complete.c +++ b/complete.c @@ -1115,7 +1115,8 @@ static void complete_cmd_desc( const wchar_t *cmd, array_list_t *comp ) array_list_t list; hash_table_t lookup; wchar_t *esc; - + int skip; + if( !cmd ) return; @@ -1141,6 +1142,35 @@ static void complete_cmd_desc( const wchar_t *cmd, array_list_t *comp ) return; } + skip = 1; + + for( i=0; i prev_count ) - { - complete_cmd_desc( cmd, comp ); - } + complete_cmd_desc( cmd, comp ); } al_destroy( &tmp ); }