projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6bb31e
)
monitor: Fix HMP tab completion
author
Kevin Wolf
<kwolf@redhat.com>
Wed, 12 Nov 2014 15:24:02 +0000
(16:24 +0100)
committer
Kevin Wolf
<kwolf@redhat.com>
Wed, 10 Dec 2014 09:31:11 +0000
(10:31 +0100)
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>
monitor.c
patch
|
blob
|
history
diff --git
a/monitor.c
b/monitor.c
index f63a3aae283f082b72bec740708ee0b4aaf1623e..b37ddda4575db0cfe1992c54f28bfdf3ca236614 100644
(file)
--- a/
monitor.c
+++ b/
monitor.c
@@
-4695,7
+4695,7
@@
static void monitor_find_completion_by_table(Monitor *mon,
}
}
str = args[nb_args - 1];
-
if
(*ptype == '-' && ptype[1] != '\0') {
+
while
(*ptype == '-' && ptype[1] != '\0') {
ptype = next_arg_type(ptype);
}
switch(*ptype) {