From 3047fbc1ea698b0d7d0da5f06dfce1d2a2035393 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 5 Jun 2007 10:38:58 +0000 Subject: unposted: more _units tweaks --- Completion/Unix/Command/_units | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Completion') 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 -- cgit 1.4.1