]> Git Repo - qemu.git/commitdiff
monitor: Fix command completion vs. boolean switches
authorJan Kiszka <[email protected]>
Tue, 15 Jun 2010 22:38:34 +0000 (00:38 +0200)
committerLuiz Capitulino <[email protected]>
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 <[email protected]>
Signed-off-by: Luiz Capitulino <[email protected]>
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':
This page took 0.034381 seconds and 4 git commands to generate.