summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 12:13:04 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 12:13:04 +0000
commitbdb91af0b9e0634fde2d07def9ba5cc15f73749f (patch)
treecc9012880f3f9e02db03ea6ed61777d269485e09 /Completion
parent479398945ab371e9a252b2b108432e8fc5d4d6d0 (diff)
downloadzsh-bdb91af0b9e0634fde2d07def9ba5cc15f73749f.tar.gz
zsh-bdb91af0b9e0634fde2d07def9ba5cc15f73749f.tar.xz
zsh-bdb91af0b9e0634fde2d07def9ba5cc15f73749f.zip
moved to Completion/X/Utility/_x_arguments
Diffstat (limited to 'Completion')
-rw-r--r--Completion/X/_x_arguments35
1 files changed, 0 insertions, 35 deletions
diff --git a/Completion/X/_x_arguments b/Completion/X/_x_arguments
deleted file mode 100644
index 8f1723cc6..000000000
--- a/Completion/X/_x_arguments
+++ /dev/null
@@ -1,35 +0,0 @@
-#compdef -P */X11(|R[456])/*
-
-local ret long xargs opts rawret nm="$compstate[nmatches]"
-
-xargs=(
-  '-display:display:_x_display'
-  '-geometry:geometry:_x_geometry'
-)
-
-(( $# )) || xargs=( "$xargs[@]" '*:default: _default' )
-
-long=$argv[(I)--]
-if (( long )); then
-  argv[long]=( "$xargs[@]" -- )
-else
-  set -- "$@" "$xargs[@]"
-fi
-
-opts=()
-while [[ $1 = -(O*|[CR]) ]]; do
-  opts=($opts $1)
-  [[ $1 = -R ]] && rawret=yes
-  shift
-done
-
-_arguments -R "$opts[@]" "$@"
-
-ret=$?
-
-if [[ "$ret" = 300 ]]; then
-  compstate[restore]=''
-  [[ -z $rawret ]] && ret=$(( nm == $compstate[nmatches] ))
-fi
-
-return ret