diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 2000-05-06 07:59:52 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 2000-05-06 07:59:52 +0000 |
commit | c1dc0ffe4f35aa48a9fbe4e9f5f7252d63634a1c (patch) | |
tree | fd5f0c372375a50654f703306859c0a173b0cd32 /Completion/Base/_regex_arguments | |
parent | b3e51a037e12dcdd291bf701c9f26797e27345f1 (diff) | |
download | zsh-c1dc0ffe4f35aa48a9fbe4e9f5f7252d63634a1c.tar.gz zsh-c1dc0ffe4f35aa48a9fbe4e9f5f7252d63634a1c.tar.xz zsh-c1dc0ffe4f35aa48a9fbe4e9f5f7252d63634a1c.zip |
11223: Completion/Base/_regex_arguments, Completion/Debian/_apt,
Completion/X/_xset, Completion/X/_xwit, Doc/Zsh/compsys.yo: _regex_arguments use _alternative.
Diffstat (limited to 'Completion/Base/_regex_arguments')
-rw-r--r-- | Completion/Base/_regex_arguments | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/Completion/Base/_regex_arguments b/Completion/Base/_regex_arguments index 1fc43f6a7..635cd0e5f 100644 --- a/Completion/Base/_regex_arguments +++ b/Completion/Base/_regex_arguments @@ -81,20 +81,7 @@ _regex_arguments () { _ra_left="$_ra_line[_ra_p1 + 1, _ra_p2]" _ra_right="$_ra_line[_ra_p2 + 1, -1]" compset -p $(( $#PREFIX - $#_ra_line + $_ra_p1 )) - tmp=("${(@)_ra_actions%%:*}") - if (( $#tmp )); then - _tags "$tmp[@]" - while _tags; do - for _ra_com in "$_ra_actions[@]"; do - if _requested "${_ra_com%%:*}"; then - while _next_label "${_ra_com%%:*}" expl "${${_ra_com#*:}%%:*}"; do - eval "${_ra_com#*:*:}" - done - [[ nm -ne "$compstate[nmatches]" ]] && break 2 - fi - done - done - fi + (( $#_ra_actions )) && _alternative "$_ra_actions[@]" fi ;; 3) _message "invalid regex";; |