1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-19 21:44:11 +01:00

17234: don't call _path_files with empty ().

This commit is contained in:
Clint Adams 2002-05-26 19:22:42 +00:00
parent 53ec91769c
commit b66a4a262f
2 changed files with 10 additions and 1 deletions

@ -1,3 +1,8 @@
2002-05-26 Clint Adams <clint@zsh.org>
* 17234: Completion/Unix/Command/_cvs:
don't call _path_files with empty ().
2002-05-25 Clint Adams <clint@zsh.org>
* 17225: Completion/Unix/Command/_cvs:

@ -945,7 +945,11 @@ _cvs_strict_nonentried_files () {
omitpats=(
${${${${(M)${(f)"$(<"$realdir"CVS/Entries)"}:#/*}#/}%%/*}//(#m)[][*?()<|^~#\\]/\\$MATCH}
)
_path_files -g "*~(*/|)(${(j:|:)~omitpats})(D.)"
if (( $#omitpats )); then
_path_files -g "*~(*/|)(${(j:|:)~omitpats})(D.)"
else
_path_files -g "*~(*/|)(D.)"
fi
}
}