diff options
| author | Tanaka Akira <akr@users.sourceforge.net> | 1999-10-13 17:50:30 +0000 |
|---|---|---|
| committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-10-13 17:50:30 +0000 |
| commit | 8746ae9979dc8cccef856300f14f6d98b4285d5a (patch) | |
| tree | 21eb594cb028f825ad5583b0a56666b2e7a076dd /Completion/User/_socket | |
| parent | zsh-workers/8230 (diff) | |
| download | zsh-8746ae9979dc8cccef856300f14f6d98b4285d5a.tar zsh-8746ae9979dc8cccef856300f14f6d98b4285d5a.tar.gz zsh-8746ae9979dc8cccef856300f14f6d98b4285d5a.tar.bz2 zsh-8746ae9979dc8cccef856300f14f6d98b4285d5a.tar.lz zsh-8746ae9979dc8cccef856300f14f6d98b4285d5a.tar.xz zsh-8746ae9979dc8cccef856300f14f6d98b4285d5a.tar.zst zsh-8746ae9979dc8cccef856300f14f6d98b4285d5a.zip | |
zsh-workers/8231
Diffstat (limited to 'Completion/User/_socket')
| -rw-r--r-- | Completion/User/_socket | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Completion/User/_socket b/Completion/User/_socket index 9b1caab73..e43c14c24 100644 --- a/Completion/User/_socket +++ b/Completion/User/_socket @@ -6,7 +6,7 @@ # The array that contains paris `host:port'. local state line expl -typeset -A options +typeset -A opt_args if [[ $CURRENT -eq 2 && ( -z "$compconfig[option_prefix]" || @@ -41,7 +41,7 @@ command) ;; arg1) - if (( $+options[-s] )); then + if (( $+opt_args[-s] )); then _description expl 'port to listen' _ports "$expl[@]" else @@ -51,7 +51,7 @@ arg1) ;; arg2) - if (( ! $+options[-s] )); then + if (( ! $+opt_args[-s] )); then _description expl 'port to connect' _combination socket_hosts_ports hosts="${line[2]:q}" ports "$expl[@]" fi |
