aboutsummaryrefslogtreecommitdiff
path: root/monitor.c
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2010-06-16 00:38:34 +0200
committerLuiz Capitulino <lcapitulino@redhat.com>2010-07-01 13:58:38 -0300
commit3b6dbf277232920a6463fc01d630e4d9dc378ef6 (patch)
tree4fa604180faccc06cd061fc5da91b0bdd60fd56d /monitor.c
parent03a63484a6978f68caff087bbaabcd1d383563af (diff)
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>
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 42ae1546db..b375f102b7 100644
--- a/monitor.c
+++ b/monitor.c
@@ -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':