about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Unix/Command/_cvs6
2 files changed, 10 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 5c0b3d066..485abc763 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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-23  Clint Adams  <clint@zsh.org>
 
         * Matt Zimmerman: 17211: Completion/Unix/Command/_cvs:
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
   }
 }