From 48fe86f6400574165979e0db6f5937ad487b6888 Mon Sep 17 00:00:00 2001 From: Kevin Wolf Date: Wed, 12 Nov 2014 16:24:02 +0100 Subject: [PATCH] monitor: Fix HMP tab completion Commands with multiple boolean flag options (like 'info block') didn't provide correct completion because only the first one was skipped. Signed-off-by: Kevin Wolf --- monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monitor.c b/monitor.c index f63a3aae28..b37ddda457 100644 --- a/monitor.c +++ b/monitor.c @@ -4695,7 +4695,7 @@ static void monitor_find_completion_by_table(Monitor *mon, } } str = args[nb_args - 1]; - if (*ptype == '-' && ptype[1] != '\0') { + while (*ptype == '-' && ptype[1] != '\0') { ptype = next_arg_type(ptype); } switch(*ptype) { -- 2.39.5