aboutsummaryrefslogtreecommitdiff
path: root/monitor.c
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2014-11-12 16:24:02 +0100
committerKevin Wolf <kwolf@redhat.com>2014-12-10 10:31:11 +0100
commit48fe86f6400574165979e0db6f5937ad487b6888 (patch)
tree7ff0488bc77df709cf19029ace60d5821ef06025 /monitor.c
parente6bb31ec6f7ef7c78c897390ecc6c6a34a7f9f5a (diff)
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>
Diffstat (limited to 'monitor.c')
-rw-r--r--monitor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/monitor.c b/monitor.c
index f63a3aae28..b37ddda457 100644
--- 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) {