about summary refs log tree commit diff
path: root/Completion/Unix/Command
diff options
context:
space:
mode:
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
   }
 }