X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=src%2Fgenerator.ml;h=9c210bc0a2bbeab6f7b73c23a242cc0a09964e6f;hb=6610af333b93d93f6f0f4b917e0caee0d35ba389;hp=99913a331219f210281b568a2fd002737ba937a3;hpb=65ad55778b8cd8e948d59fd3624966018366c45f;p=libguestfs.git diff --git a/src/generator.ml b/src/generator.ml index 99913a3..9c210bc 100755 --- a/src/generator.ml +++ b/src/generator.ml @@ -4594,9 +4594,12 @@ and generate_fish_completion () = #ifdef HAVE_LIBREADLINE static const char *const commands[] = { + BUILTIN_COMMANDS_FOR_COMPLETION, "; - (* Get the commands and sort them, including the aliases. *) + (* Get the commands, including the aliases. They don't need to be + * sorted - the generator() function just does a dumb linear search. + *) let commands = List.map ( fun (name, _, _, flags, _, _, _) -> @@ -4608,7 +4611,6 @@ static const char *const commands[] = { if name <> alias then [name2; alias] else [name2] ) all_functions in let commands = List.flatten commands in - let commands = List.sort compare commands in List.iter (pr " \"%s\",\n") commands;