mirror of https://github.com/proxmox/mirror_qemu
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>master
parent
03a63484a6
commit
3b6dbf2772
|
@ -3918,7 +3918,7 @@ static void monitor_find_completion(const char *cmdline)
|
||||||
}
|
}
|
||||||
str = args[nb_args - 1];
|
str = args[nb_args - 1];
|
||||||
if (*ptype == '-' && ptype[1] != '\0') {
|
if (*ptype == '-' && ptype[1] != '\0') {
|
||||||
ptype += 2;
|
ptype = next_arg_type(ptype);
|
||||||
}
|
}
|
||||||
switch(*ptype) {
|
switch(*ptype) {
|
||||||
case 'F':
|
case 'F':
|
||||||
|
|
Loading…
Reference in New Issue