From 0ccc657aa6ad410fd047dc88cdb302252edb5ebf Mon Sep 17 00:00:00 2001 From: axel Date: Mon, 23 Jan 2006 09:30:00 +1000 Subject: [PATCH] Fix bug from the modified completion builtin where a completion that specified no switches would be ignored darcs-hash:20060122233000-ac50b-779c3bbb08d1bdaaa6c6eae6192413d6b71aff21.gz --- builtin_complete.c | 68 ++++++++++++++++++++++++++++------------------ 1 file changed, 41 insertions(+), 27 deletions(-) diff --git a/builtin_complete.c b/builtin_complete.c index 90682e218..005dab663 100644 --- a/builtin_complete.c +++ b/builtin_complete.c @@ -39,43 +39,57 @@ static void builtin_complete_add2( const wchar_t *cmd, for( s=short_opt; *s; s++ ) { complete_add( cmd, - cmd_type, - *s, - 0, - 0, - result_mode, - authorative, - condition, - comp, - desc ); + cmd_type, + *s, + 0, + 0, + result_mode, + authorative, + condition, + comp, + desc ); } for( i=0; i