Re: [PATCH v4 2/2] MI: Add new command -complete

Pedro Alves
2019-04-18T14:15:04Z

This version is OK, with the tiny issue below addressed.

Can you push this yourself, or do you need someone to do it for you?

> +/* Implement the "-complete" command. */
> +
> +void
> +mi_cmd_complete (const char *command, char **argv, int argc)
> +{
> + if (argc != 1)
> + error (_("Usage: -complete COMMAND"));
> +
> + if (max_completions == 0)
> + error (_("max-completions is zero, completion is disabled.\n"));

errors should not end in \n.

Thanks,
Pedro Alves