diff options
author | Kevin Wolf <kwolf@redhat.com> | 2014-11-12 16:24:02 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2014-12-10 10:31:11 +0100 |
commit | 48fe86f6400574165979e0db6f5937ad487b6888 (patch) | |
tree | 7ff0488bc77df709cf19029ace60d5821ef06025 | |
parent | e6bb31ec6f7ef7c78c897390ecc6c6a34a7f9f5a (diff) |
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 <kwolf@redhat.com>
-rw-r--r-- | monitor.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |