about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2002-05-26 19:22:42 +0000
committerClint Adams <clint@users.sourceforge.net>2002-05-26 19:22:42 +0000
commitb66a4a262fd19934efcda0aa5dbe5d74a7848f2b (patch)
treed8112b2f5155775426197d9789e943cbea916839 /Completion
parent53ec91769cd241ba306ea20bc092fb4284543cae (diff)
downloadzsh-b66a4a262fd19934efcda0aa5dbe5d74a7848f2b.tar.gz
zsh-b66a4a262fd19934efcda0aa5dbe5d74a7848f2b.tar.xz
zsh-b66a4a262fd19934efcda0aa5dbe5d74a7848f2b.zip
17234: don't call _path_files with empty ().
Diffstat (limited to 'Completion')
-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 01c4222c5..584e31f28 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
   }
 }