about summary refs log tree commit diff
path: root/Completion/Unix/Command
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
parent71395cab6afa8ad917d1b0a9af3bc9090e02024d (diff)
downloadzsh-844cd3fe124cb7c183fba43554de9f45513a6f13.tar.gz
zsh-844cd3fe124cb7c183fba43554de9f45513a6f13.tar.xz
zsh-844cd3fe124cb7c183fba43554de9f45513a6f13.zip
17234: don't call _path_files with empty ().
Diffstat (limited to 'Completion/Unix/Command')
-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
   }
 }