mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
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:
parent
03a63484a6
commit
3b6dbf2772
1 changed files with 1 additions and 1 deletions
|
@ -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':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue