1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-04 06:14:50 +01:00

unposted: more _units tweaks

This commit is contained in:
Peter Stephenson 2007-06-05 10:38:58 +00:00
parent 2461beb0ac
commit 3047fbc1ea

View file

@ -71,7 +71,7 @@ if (( ${#units} )); then
_alternative 'unitprefixes:unit prefix:compadd -S "" -a pfxs' \
'units:unit:compadd -a units' && ret=0
# attempt to skip a prefix
if compset -P "(${(j.|.)pfxs})"; then
if $(( ${#pfxs} )) && compset -P "(${(j.|.)pfxs})"; then
_wanted units expl unit compadd -a units && ret=0
fi
return ret