From: Blue Swirl Date: Sun, 23 Aug 2009 20:10:28 +0000 (+0000) Subject: Fix device name completion for 'eject' X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=2a1704a71d851624175509a2b15a000dcc7c0386;p=qemu.git Fix device name completion for 'eject' Signed-off-by: Blue Swirl --- 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 */