about summary refs log tree commit diff
path: root/Completion/Unix/Command/_links
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Unix/Command/_links')
-rw-r--r--Completion/Unix/Command/_links8
1 files changed, 3 insertions, 5 deletions
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