From aed1bad64acc50aaa4c34495957dd7b9c218b38d Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Wed, 12 Dec 2001 11:29:34 +0000 Subject: allow tag-order to select order of files and urls (16330) --- Completion/Unix/Command/_links | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'Completion/Unix/Command/_links') diff --git a/Completion/Unix/Command/_links b/Completion/Unix/Command/_links index 1eb7e4d21..ce8512fc1 100644 --- a/Completion/Unix/Command/_links +++ b/Completion/Unix/Command/_links @@ -24,8 +24,6 @@ _arguments -C \ '-help' \ ':url:->html' && return 0 -case "$state" in -html) - _files -g '*.html' || _urls - ;; -esac +if [[ "$state" = html ]]; then + _alternative 'files:file:_files "*.html"' 'urls:url:_urls' +fi -- cgit 1.4.1