diff options
| author | Aljaž "g5pw" Srebrnič <a2piratesoft@gmail.com> | 2014-02-19 15:35:09 +0100 |
|---|---|---|
| committer | Aljaž "g5pw" Srebrnič <a2piratesoft@gmail.com> | 2014-06-26 17:58:00 +0200 |
| commit | 062e23c1bfe0fddf2a0e1576a745a04d77541eab (patch) | |
| tree | 5c64173c90cfa3fcd75a5d7bc7c5353e03106b11 /src/_port | |
| parent | A better cache policy for _port (diff) | |
| download | zsh-completions-062e23c1bfe0fddf2a0e1576a745a04d77541eab.tar zsh-completions-062e23c1bfe0fddf2a0e1576a745a04d77541eab.tar.gz zsh-completions-062e23c1bfe0fddf2a0e1576a745a04d77541eab.tar.bz2 zsh-completions-062e23c1bfe0fddf2a0e1576a745a04d77541eab.tar.lz zsh-completions-062e23c1bfe0fddf2a0e1576a745a04d77541eab.tar.xz zsh-completions-062e23c1bfe0fddf2a0e1576a745a04d77541eab.tar.zst zsh-completions-062e23c1bfe0fddf2a0e1576a745a04d77541eab.zip | |
No need to use the ->string format
If we have only one function to call fro completion, just call it. Also, remove
local declaration, since we don't use the ->string form.
Diffstat (limited to 'src/_port')
| -rw-r--r-- | src/_port | 12 |
1 files changed, 1 insertions, 11 deletions
@@ -16,10 +16,6 @@ # ------------------------------------------------------------------------------ _port() { - # Variables for _argument - typeset -A opt_args - local context state state_descr line - local -a upgrade_options revupgrade_options select_options \ actions pseudo_common pseudo_advanced port_prefix @@ -135,14 +131,8 @@ _port() { '-y[Perform a dry run.]' \ '-t[Enable trace mode debug facilities on platforms that support it (Mac OS X).]' \ "1:Port actions:(($actions))" \ - '*:extra:->extra' \ + '*:Per-action arguments:_port_dispatch' \ && return 0 - - case "$state" in - extra) - _port_dispatch - ;; - esac } _port_dispatch() { |
