Make -c without args work like regular z does

This commit is contained in:
rupa committed 2013-03-03 01:59:26 -05:00
1 parent 0f3f7a437f
commit ce3330e91f
1 file changed
+1 -1
+1 -1
View File
@@ -109,7 +109,7 @@ _z() {
--) while [ "$1" ]; do shift; local fnd="$fnd $1";done;;
*) local fnd="$fnd $1";;
esac; local last=$1; shift; done
[ "$fnd" ] || local list=1
[ "$fnd" -a "$fnd" != "$PWD " ] || local list=1
# if we hit enter on a completion just go there
case "$last" in