From 25da576c292b7ff84a34fa8aee70ff7c7d9e2ba1 Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Thu, 5 Apr 2018 11:14:58 +0200 Subject: 42575: fix to not complete options in the argument to another option --- Src/Zle/computil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src/Zle') diff --git a/Src/Zle/computil.c b/Src/Zle/computil.c index 4ce8eeee5..2e86e5740 100644 --- a/Src/Zle/computil.c +++ b/Src/Zle/computil.c @@ -2675,7 +2675,7 @@ bin_comparguments(char *nam, char **args, UNUSED(Options ops), UNUSED(int func)) for (; lstate; lstate = lstate->snext) { if (lstate->actopts && - (lstate->opt || lstate->def || + (lstate->opt || (ca_doff && lstate->def) || (lstate->def && lstate->def->opt && (lstate->def->type == CAA_OPT || (lstate->def->type >= CAA_RARGS && -- cgit 1.4.1