diff options
author | Oliver Kiddle <okiddle@yahoo.co.uk> | 2018-04-05 11:14:58 +0200 |
---|---|---|
committer | Oliver Kiddle <okiddle@yahoo.co.uk> | 2018-04-05 11:14:58 +0200 |
commit | 25da576c292b7ff84a34fa8aee70ff7c7d9e2ba1 (patch) | |
tree | 02f3ee707137e4b04526e6963a611a81add4c93b /Src/Zle | |
parent | 35734810d1b042ca1fb4508ae3813ef999ff1aa9 (diff) | |
download | zsh-25da576c292b7ff84a34fa8aee70ff7c7d9e2ba1.tar.gz zsh-25da576c292b7ff84a34fa8aee70ff7c7d9e2ba1.tar.xz zsh-25da576c292b7ff84a34fa8aee70ff7c7d9e2ba1.zip |
42575: fix to not complete options in the argument to another option
Diffstat (limited to 'Src/Zle')
-rw-r--r-- | Src/Zle/computil.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 && |