From 8746ae9979dc8cccef856300f14f6d98b4285d5a Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Wed, 13 Oct 1999 17:50:30 +0000 Subject: zsh-workers/8231 --- Completion/User/_telnet | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Completion/User/_telnet') diff --git a/Completion/User/_telnet b/Completion/User/_telnet index 2895cc2af..b1c628d11 100644 --- a/Completion/User/_telnet +++ b/Completion/User/_telnet @@ -6,7 +6,7 @@ # The array that contains 3-tuples `host:port:user'. local state line expl -typeset -A options +typeset -A opt_args if (( ! $+_telnet_short )); then local k help="$(telnet -\? < /dev/null 2>&1)" @@ -69,14 +69,14 @@ case "$state" in hosts) _description expl 'host' _combination telnet_hosts_ports_users \ - ${options[-l]:+users=${options[-l]:q}} \ + ${opt_args[-l]:+users=${opt_args[-l]:q}} \ hosts "$expl[@]" ;; ports) _description expl 'port' _combination telnet_hosts_ports_users \ - ${options[-l]:+users=${options[-l]:q}} \ + ${opt_args[-l]:+users=${opt_args[-l]:q}} \ hosts="${line[2]:q}" \ ports "$expl[@]" ;; -- cgit 1.4.1