From 626e2aeb1657f112feb6d03c34bb9e9f44764c75 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Thu, 23 Mar 2000 04:19:26 +0000 Subject: zsh-workers/10195 --- Completion/User/_socket | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'Completion/User/_socket') diff --git a/Completion/User/_socket b/Completion/User/_socket index dfe8f4844..fecd3e6c0 100644 --- a/Completion/User/_socket +++ b/Completion/User/_socket @@ -39,17 +39,16 @@ command) arg1) if (( $+opt_args[-s] )); then - _wanted ports expl 'port to listen' && _ports "$expl[@]" + _wanted ports expl 'port to listen' _ports else - _wanted hosts expl 'host' && - _combination '' hosts-ports hosts "$expl[@]" + _wanted hosts expl 'host' _combination '' hosts-ports hosts - fi ;; arg2) if (( ! $+opt_args[-s] )); then - _wanted ports expl 'port to connect' && - _combination '' hosts-ports hosts="${line[1]:q}" ports "$expl[@]" + _wanted ports expl 'port to connect' \ + _combination '' hosts-ports hosts="${line[1]:q}" ports - fi ;; esac -- cgit 1.4.1