aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2009-08-23 20:10:28 +0000
committerBlue Swirl <blauwirbel@gmail.com>2009-08-23 20:10:28 +0000
commit2a1704a71d851624175509a2b15a000dcc7c0386 (patch)
tree88b4538389a10cdb575b88ac94be758564076d19
parent4445b0a62432a6402bbca8ba753679c70c98b522 (diff)
Fix device name completion for 'eject'
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
-rw-r--r--monitor.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/monitor.c b/monitor.c
index 362322b246..08a9ea55eb 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 */