about summary refs log tree commit diff
path: root/Completion/X/_x_selection_timeout
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/_x_selection_timeout
parenta76b8ea1a52442c2a287db12305b34c3e2b16f7f (diff)
downloadzsh-f8260fce2e423e8ba71d3d0637c3ba359fd8116f.tar.gz
zsh-f8260fce2e423e8ba71d3d0637c3ba359fd8116f.tar.xz
zsh-f8260fce2e423e8ba71d3d0637c3ba359fd8116f.zip
zsh-workers/9790
Diffstat (limited to 'Completion/X/_x_selection_timeout')
-rw-r--r--Completion/X/_x_selection_timeout6
1 files changed, 4 insertions, 2 deletions
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