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 362322b..08a9ea5 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 */