From 844cd3fe124cb7c183fba43554de9f45513a6f13 Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Sun, 26 May 2002 19:23:42 +0000 Subject: 17234: don't call _path_files with empty (). --- Completion/Unix/Command/_cvs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to '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 } } -- cgit 1.4.1