]> Git Repo - qemu.git/commitdiff
Fix device name completion for 'eject'
authorBlue Swirl <[email protected]>
Sun, 23 Aug 2009 20:10:28 +0000 (20:10 +0000)
committerBlue Swirl <[email protected]>
Sun, 23 Aug 2009 20:10:28 +0000 (20:10 +0000)
Signed-off-by: Blue Swirl <[email protected]>
monitor.c

index 362322b246c33698280a2ee85c7344dd95f1d4b5..08a9ea55eb44ac24dc2d06ec38408c549b2bcb79 100644 (file)
--- a/monitor.c
+++ b/monitor.c
@@ -3062,6 +3062,9 @@ static void monitor_find_completion(const char *cmdline)
             }
         }
         str = args[nb_args - 1];
+        if (*ptype == '-' && ptype[1] != '\0') {
+            ptype += 2;
+        }
         switch(*ptype) {
         case 'F':
             /* file completion */
This page took 0.02944 seconds and 4 git commands to generate.