diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-07-25 14:49:32 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-07-25 14:49:32 +0000 |
commit | f29d50fe9ce5178eb2136bc06bad9fa995f7e318 (patch) | |
tree | c7fd5ef2024fb1998f21d3834812846e3c29b2f4 /Src | |
parent | 1df4b6620bde483aaf38521f7675547d42b62c42 (diff) | |
download | zsh-f29d50fe9ce5178eb2136bc06bad9fa995f7e318.tar.gz zsh-f29d50fe9ce5178eb2136bc06bad9fa995f7e318.tar.xz zsh-f29d50fe9ce5178eb2136bc06bad9fa995f7e318.zip |
move pattern matching in the loop to make sure all match specs are used (15487)
Diffstat (limited to 'Src')
-rw-r--r-- | Src/Zle/complete.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Src/Zle/complete.c b/Src/Zle/complete.c index 106e0ddab..f9a160bb7 100644 --- a/Src/Zle/complete.c +++ b/Src/Zle/complete.c @@ -616,14 +616,15 @@ bin_compadd(char *name, char **argv, char *ops, int func) } } } + + ca_args: + if (mstr && (match = parse_cmatcher(name, mstr)) == pcm_err) { zsfree(mstr); return 1; } zsfree(mstr); - ca_args: - if (!*argv && !dat.group && !dat.mesg && !(dat.aflags & (CAF_NOSORT|CAF_UNIQALL|CAF_UNIQCON|CAF_ALL))) return 1; |