From 2a1704a71d851624175509a2b15a000dcc7c0386 Mon Sep 17 00:00:00 2001 From: Blue Swirl Date: Sun, 23 Aug 2009 20:10:28 +0000 Subject: [PATCH] Fix device name completion for 'eject' Signed-off-by: Blue Swirl --- monitor.c | 3 +++ 1 file changed, 3 insertions(+) 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 */ -- GitLab