summaryrefslogtreecommitdiffstats
path: root/Completion/Unix/Command/_cvs
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2002-05-26 19:23:42 +0000
committerClint Adams <clint@users.sourceforge.net>2002-05-26 19:23:42 +0000
commit844cd3fe124cb7c183fba43554de9f45513a6f13 (patch)
tree2963ad145f73967325c02aff478158d10767fe0c /Completion/Unix/Command/_cvs
parent17211: respect $CVSIGNORE. (diff)
downloadzsh-844cd3fe124cb7c183fba43554de9f45513a6f13.tar
zsh-844cd3fe124cb7c183fba43554de9f45513a6f13.tar.gz
zsh-844cd3fe124cb7c183fba43554de9f45513a6f13.tar.bz2
zsh-844cd3fe124cb7c183fba43554de9f45513a6f13.tar.lz
zsh-844cd3fe124cb7c183fba43554de9f45513a6f13.tar.xz
zsh-844cd3fe124cb7c183fba43554de9f45513a6f13.tar.zst
zsh-844cd3fe124cb7c183fba43554de9f45513a6f13.zip
17234: don't call _path_files with empty ().
Diffstat (limited to 'Completion/Unix/Command/_cvs')
-rw-r--r--Completion/Unix/Command/_cvs6
1 files changed, 5 insertions, 1 deletions
diff --git a/Completion/Unix/Command/_cvs b/Completion/Unix/Command/_cvs
index 286503236..224f7f3a7 100644
--- a/Completion/Unix/Command/_cvs
+++ b/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
}
}