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:
parent
2461beb0ac
commit
3047fbc1ea
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue