Received: from eggs.gnu.org ([2001:4830:134:3::10]:58748) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xyebp-0008Ub-UM for qemu-devel@nongnu.org; Wed, 10 Dec 2014 05:35:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xyebj-0007US-7B for qemu-devel@nongnu.org; Wed, 10 Dec 2014 05:35:05 -0500 Received: from mx1.redhat.com ([209.132.183.28]:51956) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xyebj-0007TX-0g for qemu-devel@nongnu.org; Wed, 10 Dec 2014 05:34:59 -0500 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id sBAAYwFj021575 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Wed, 10 Dec 2014 05:34:58 -0500 From: Kevin Wolf Date: Wed, 10 Dec 2014 11:33:43 +0100 Message-Id: <1418207679-32260-18-git-send-email-kwolf@redhat.com> In-Reply-To: <1418207679-32260-1-git-send-email-kwolf@redhat.com> References: <1418207679-32260-1-git-send-email-kwolf@redhat.com> Subject: [Qemu-devel] [PULL 17/73] monitor: Fix HMP tab completion List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com 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 f63a3aa..b37ddda 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) { -- 1.8.3.1