diff --git a/monitor.c b/monitor.c index de68755020..ed1ce6e780 100644 --- a/monitor.c +++ b/monitor.c @@ -3059,6 +3059,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 */