Fix auto-completion for ambiguous commands

fixes #7404
This commit is contained in:
Gunnar Beutner 2014-10-22 08:16:56 +02:00
parent 5e7e49708c
commit 74830dd8dd
1 changed files with 3 additions and 0 deletions

View File

@ -233,6 +233,9 @@ void CLICommand::ShowCommands(int argc, char **argv, po::options_description *vi
continue;
}
if (autocomplete && i >= autoindex - 1)
break;
if (vname[i] != argv[k])
break;