From 45c1cee848faf8bdb1f9db545516d7a98c50c749 Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Thu, 28 Jun 2001 11:22:55 +0000 Subject: fix for two digit display numbers and -encodings option (15159) --- Completion/X/Command/_vnc | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'Completion/X/Command') diff --git a/Completion/X/Command/_vnc b/Completion/X/Command/_vnc index cd619c6f0..24ffc3f83 100644 --- a/Completion/X/Command/_vnc +++ b/Completion/X/Command/_vnc @@ -1,7 +1,7 @@ -#compdef vncserver vncviewer +#compdef vncserver vncviewer xvncviewer local displays args -displays=( ~/.vnc/$HOST:?.pid(N:r:t:s/$HOST//) ) +displays=( ~/.vnc/$HOST:<->.pid(N:r:t:s/$HOST//) ) displays=( \\${^displays} ) case $service in @@ -19,10 +19,9 @@ case $service in - help \ '-help' ;; - vncviewer) - # should allow list for -encodings + *vncviewer) _xt_arguments -shared -viewonly -fullscreen -bgr233 -owncmap -truecolour \ - '-encodings:encodings:(copyrect hextile corre rre raw)' \ + '-encodings:encodings:_values -s " " copyrect hextile corre rre raw' \ '-depth:depth' \ '-passwd:file:_files' \ '(1)-listen:display number' \ -- cgit 1.4.1