summaryrefslogtreecommitdiffstats
path: root/Completion/X
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>2000-02-18 10:11:05 +0000
committerTanaka Akira <akr@users.sourceforge.net>2000-02-18 10:11:05 +0000
commitf8260fce2e423e8ba71d3d0637c3ba359fd8116f (patch)
tree9f3ace6e128fd165467648a16f1f8eac10751b2d /Completion/X
parentzsh-workers/9787 (diff)
downloadzsh-f8260fce2e423e8ba71d3d0637c3ba359fd8116f.tar
zsh-f8260fce2e423e8ba71d3d0637c3ba359fd8116f.tar.gz
zsh-f8260fce2e423e8ba71d3d0637c3ba359fd8116f.tar.bz2
zsh-f8260fce2e423e8ba71d3d0637c3ba359fd8116f.tar.lz
zsh-f8260fce2e423e8ba71d3d0637c3ba359fd8116f.tar.xz
zsh-f8260fce2e423e8ba71d3d0637c3ba359fd8116f.tar.zst
zsh-f8260fce2e423e8ba71d3d0637c3ba359fd8116f.zip
zsh-workers/9790
Diffstat (limited to 'Completion/X')
-rw-r--r--Completion/X/_x_borderwidth6
-rw-r--r--Completion/X/_x_geometry6
-rw-r--r--Completion/X/_x_locale6
-rw-r--r--Completion/X/_x_name6
-rw-r--r--Completion/X/_x_resource6
-rw-r--r--Completion/X/_x_selection_timeout6
-rw-r--r--Completion/X/_x_title6
7 files changed, 28 insertions, 14 deletions
diff --git a/Completion/X/_x_borderwidth b/Completion/X/_x_borderwidth
index 1864e8a77..c2f0eec83 100644
--- a/Completion/X/_x_borderwidth
+++ b/Completion/X/_x_borderwidth
@@ -1,7 +1,9 @@
#autoload
-if (( $# )); then
- _message "$2"
+local x="$argv[(I)-X]"
+
+if (( x )); then
+ _message -r "$argv[x + 1]"
else
_message 'border width'
fi
diff --git a/Completion/X/_x_geometry b/Completion/X/_x_geometry
index 5584cb75f..a15dd16d9 100644
--- a/Completion/X/_x_geometry
+++ b/Completion/X/_x_geometry
@@ -1,7 +1,9 @@
#autoload
-if (( $# )); then
- _message "$2"
+local x="$argv[(I)-X]"
+
+if (( x )); then
+ _message -r "$argv[x + 1]"
else
_message 'geometry'
fi
diff --git a/Completion/X/_x_locale b/Completion/X/_x_locale
index 62415f857..2321b1a5b 100644
--- a/Completion/X/_x_locale
+++ b/Completion/X/_x_locale
@@ -1,7 +1,9 @@
#autoload
-if (( $# )); then
- _message "$2"
+local x="$argv[(I)-X]"
+
+if (( x )); then
+ _message -r "$argv[x + 1]"
else
_message 'locale'
fi
diff --git a/Completion/X/_x_name b/Completion/X/_x_name
index 692e56736..38d4c26d3 100644
--- a/Completion/X/_x_name
+++ b/Completion/X/_x_name
@@ -1,7 +1,9 @@
#autoload
-if (( $# )); then
- _message "$2"
+local x="$argv[(I)-X]"
+
+if (( x )); then
+ _message -r "$argv[x + 1]"
else
_message 'name'
fi
diff --git a/Completion/X/_x_resource b/Completion/X/_x_resource
index f46eef15c..a0b8e0f21 100644
--- a/Completion/X/_x_resource
+++ b/Completion/X/_x_resource
@@ -1,7 +1,9 @@
#autoload
-if (( $# )); then
- _message "$2"
+local x="$argv[(I)-X]"
+
+if (( x )); then
+ _message -r "$argv[x + 1]"
else
_message 'resource'
fi
diff --git a/Completion/X/_x_selection_timeout b/Completion/X/_x_selection_timeout
index 5481cd7fe..d6dfd8a13 100644
--- a/Completion/X/_x_selection_timeout
+++ b/Completion/X/_x_selection_timeout
@@ -1,7 +1,9 @@
#autoload
-if (( $# )); then
- _message "$2"
+local x="$argv[(I)-X]"
+
+if (( x )); then
+ _message -r "$argv[x + 1]"
else
_message 'selection timeout'
fi
diff --git a/Completion/X/_x_title b/Completion/X/_x_title
index c892702b1..fe2ab7b9f 100644
--- a/Completion/X/_x_title
+++ b/Completion/X/_x_title
@@ -1,7 +1,9 @@
#autoload
-if (( $# )); then
- _message "$2"
+local x="$argv[(I)-X]"
+
+if (( x )); then
+ _message -r "$argv[x + 1]"
else
_message 'title'
fi