qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [COMMIT 2a1704a] Fix device name completion for 'eject'


From: Anthony Liguori
Subject: [Qemu-commits] [COMMIT 2a1704a] Fix device name completion for 'eject'
Date: Sun, 23 Aug 2009 20:12:58 -0000

From: Blue Swirl <address@hidden>

Signed-off-by: Blue Swirl <address@hidden>

diff --git a/monitor.c b/monitor.c
index 362322b..08a9ea5 100644
--- 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 */




reply via email to

[Prev in Thread] Current Thread [Next in Thread]