summary refs log tree commit diff
path: root/Completion/Unix
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2007-06-05 10:38:58 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2007-06-05 10:38:58 +0000
commit3047fbc1ea698b0d7d0da5f06dfce1d2a2035393 (patch)
treec54b38b67960050d6b48732a1c97fde30750c5ab /Completion/Unix
parent2461beb0acabd70398eaf9876e4456e82c75013e (diff)
downloadzsh-3047fbc1ea698b0d7d0da5f06dfce1d2a2035393.tar.gz
zsh-3047fbc1ea698b0d7d0da5f06dfce1d2a2035393.tar.xz
zsh-3047fbc1ea698b0d7d0da5f06dfce1d2a2035393.zip
unposted: more _units tweaks
Diffstat (limited to 'Completion/Unix')
-rw-r--r--Completion/Unix/Command/_units2
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Unix/Command/_units b/Completion/Unix/Command/_units
index d6bc6987f..ff6942e7b 100644
--- a/Completion/Unix/Command/_units
+++ b/Completion/Unix/Command/_units
@@ -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