mirror of
https://github.com/qemu/qemu.git
synced 2024-11-28 22:33:36 +08:00
monitor: Fix HMP tab completion
Commands with multiple boolean flag options (like 'info block') didn't provide correct completion because only the first one was skipped. Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
e6bb31ec6f
commit
48fe86f640
@ -4695,7 +4695,7 @@ static void monitor_find_completion_by_table(Monitor *mon,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
str = args[nb_args - 1];
|
str = args[nb_args - 1];
|
||||||
if (*ptype == '-' && ptype[1] != '\0') {
|
while (*ptype == '-' && ptype[1] != '\0') {
|
||||||
ptype = next_arg_type(ptype);
|
ptype = next_arg_type(ptype);
|
||||||
}
|
}
|
||||||
switch(*ptype) {
|
switch(*ptype) {
|
||||||
|
Loading…
Reference in New Issue
Block a user