Fix device name completion for 'eject'
authorBlue Swirl <blauwirbel@gmail.com>
Sun, 23 Aug 2009 20:10:28 +0000 (20:10 +0000)
committerBlue Swirl <blauwirbel@gmail.com>
Sun, 23 Aug 2009 20:10:28 +0000 (20:10 +0000)
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
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 */