monitor: Fix command completion vs. boolean switches

We now have to move forward to the next argument type via next_arg_type.
This patch fixes completion for 'eject' and maybe also other commands.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
This commit is contained in:
Jan Kiszka 2010-06-16 00:38:34 +02:00 committed by Luiz Capitulino
parent 03a63484a6
commit 3b6dbf2772
1 changed files with 1 additions and 1 deletions

View File

@ -3918,7 +3918,7 @@ static void monitor_find_completion(const char *cmdline)
}
str = args[nb_args - 1];
if (*ptype == '-' && ptype[1] != '\0') {
ptype += 2;
ptype = next_arg_type(ptype);
}
switch(*ptype) {
case 'F':