[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v2 5/5] monitor: Fix HMP tab completion
From: |
Kevin Wolf |
Subject: |
[Qemu-devel] [PATCH v2 5/5] monitor: Fix HMP tab completion |
Date: |
Wed, 12 Nov 2014 17:11:18 +0100 |
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 <address@hidden>
---
monitor.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/monitor.c b/monitor.c
index 3e7c640..e3219e0 100644
--- a/monitor.c
+++ b/monitor.c
@@ -4698,7 +4698,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
- [Qemu-devel] [PATCH v2 0/5] block: QMP cache info and HMP node support, Kevin Wolf, 2014/11/12
- [Qemu-devel] [PATCH v2 1/5] block/qapi: Add cache information to query-block, Kevin Wolf, 2014/11/12
- [Qemu-devel] [PATCH v2 2/5] block/hmp: Factor out print_block_info(), Kevin Wolf, 2014/11/12
- [Qemu-devel] [PATCH v2 3/5] block/hmp: Allow info = NULL in print_block_info(), Kevin Wolf, 2014/11/12
- [Qemu-devel] [PATCH v2 4/5] block/hmp: Allow node-name in 'info block', Kevin Wolf, 2014/11/12
- [Qemu-devel] [PATCH v2 5/5] monitor: Fix HMP tab completion,
Kevin Wolf <=
- Re: [Qemu-devel] [PATCH v2 0/5] block: QMP cache info and HMP node support, Kevin Wolf, 2014/11/21