about summary refs log tree commit diff
path: root/Completion/Unix/Type/_urls
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2001-12-12 11:34:18 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2001-12-12 11:34:18 +0000
commit62f2d97f4c7ccee58364b7713790c06cda1fcf5d (patch)
tree945bac99df0ba5db793cec5211eb6bbb46b5c114 /Completion/Unix/Type/_urls
parentaed1bad64acc50aaa4c34495957dd7b9c218b38d (diff)
downloadzsh-62f2d97f4c7ccee58364b7713790c06cda1fcf5d.tar.gz
zsh-62f2d97f4c7ccee58364b7713790c06cda1fcf5d.tar.xz
zsh-62f2d97f4c7ccee58364b7713790c06cda1fcf5d.zip
allow tag-order to select order of files and urls (16323)
Diffstat (limited to 'Completion/Unix/Type/_urls')
-rw-r--r--Completion/Unix/Type/_urls11
1 files changed, 1 insertions, 10 deletions
diff --git a/Completion/Unix/Type/_urls b/Completion/Unix/Type/_urls
index 63ab0e7c1..32b994c76 100644
--- a/Completion/Unix/Type/_urls
+++ b/Completion/Unix/Type/_urls
@@ -1,9 +1,5 @@
 #compdef curl
 
-# Usage: _urls [-f]
-# Options:
-#  -f : complete files first.
-#
 # Configuration styles used:
 #
 #  urls
@@ -48,11 +44,6 @@ local localhttp_servername="$localhttp[1]"
 local localhttp_documentroot="$localhttp[2]"
 local localhttp_userdir="$localhttp[3]"
 
-if [[ "$1" = -f ]]; then
-  shift
-  _wanted -C -f files expl file _files "$@" && return 0
-fi
-
 zstyle -a ":completion:${curcontext}:urls" urls urls
 
 if [[ $#urls -gt 1 || ( $#urls -eq 1 && ! -d $urls[1] ) ]]; then
@@ -134,7 +125,7 @@ if ! compset -P '(#b)([^:/]#)([:/])'; then
 
   _tags hosts
   while _tags; do
-    while _next_label hosts expl host "$@"; do
+    while _next_label hosts expl host; do
       compset -S '[:/]*' || suf="/"
       (( $#uhosts )) || _hosts -S "$suf" -r '/:' "$expl[@]" && ret=0
       [[ "$scheme" = http ]] && uhosts=($uhosts $localhttp_servername)