diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2010-06-16 00:38:34 +0200 |
---|---|---|
committer | Luiz Capitulino <lcapitulino@redhat.com> | 2010-07-01 13:58:38 -0300 |
commit | 3b6dbf277232920a6463fc01d630e4d9dc378ef6 (patch) | |
tree | 4fa604180faccc06cd061fc5da91b0bdd60fd56d /monitor.c | |
parent | 03a63484a6978f68caff087bbaabcd1d383563af (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.c | 2 |
1 files changed, 1 insertions, 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': |