projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03a6348
)
monitor: Fix command completion vs. boolean switches
author
Jan Kiszka
<jan.kiszka@siemens.com>
Tue, 15 Jun 2010 22:38:34 +0000
(
00:38
+0200)
committer
Luiz Capitulino
<lcapitulino@redhat.com>
Thu, 1 Jul 2010 16:58:38 +0000
(13:58 -0300)
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>
monitor.c
patch
|
blob
|
history
diff --git
a/monitor.c
b/monitor.c
index 42ae1546dbcfeb3755418f8ed6a658ac2926f252..b375f102b7589c051d76c1b33542ed7b36fc7407 100644
(file)
--- 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':