diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-10-15 15:08:24 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-10-15 15:08:24 +0000 |
commit | d158824284f0ff13b5de0189b3e429d5fb9eab63 (patch) | |
tree | c52959fdff73b3b52003fd7dfd0d1dba6f113e44 /Completion/Base | |
parent | 163aad3457a0f10a6f0bff654fd324abb5c2918c (diff) | |
download | zsh-d158824284f0ff13b5de0189b3e429d5fb9eab63.tar.gz zsh-d158824284f0ff13b5de0189b3e429d5fb9eab63.tar.xz zsh-d158824284f0ff13b5de0189b3e429d5fb9eab63.zip |
zsh-workers/8289
Diffstat (limited to 'Completion/Base')
-rw-r--r-- | Completion/Base/_regex_arguments | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Completion/Base/_regex_arguments b/Completion/Base/_regex_arguments index a89bb19b4..2608fda11 100644 --- a/Completion/Base/_regex_arguments +++ b/Completion/Base/_regex_arguments @@ -88,8 +88,6 @@ _ra_parse_elt () { if [[ $index -le $#regex && $regex[index] = :* ]]; then act="${regex[index++][2,-1]}" action[$state]="$act" - # `actions[$act]="${actions[$act]} $state"' is not work properly - # because $act on lhs is expanded twice. : ${actions[$act]::="${actions[$act]} $state"} else action[$state]="" @@ -235,8 +233,9 @@ _ra_gen_func () { 'case "$_ra_actions[1]" in' for tmp in "${(@k)actions}"; do - #print -lr - "KEY:{$tmp}" "VAL:{$actions[$tmp]}" >&2 - print -lr - "${(j:);&:)${=actions[$tmp]}})" $tmp ';;' + if [[ "$tmp" != '' ]]; then + print -lr - "${(j:);&:)${=actions[$tmp]}})" $tmp ';;' + fi done print -lr - \ |