From 9f9b6e165516c4ee59b1f5b609a6890ccc3d598f Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Fri, 5 May 2000 13:38:45 +0000 Subject: completion function cleanup for `_arguments' with the `-C' option and using it's return value (11195) --- Completion/User/_enscript | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Completion/User/_enscript') diff --git a/Completion/User/_enscript b/Completion/User/_enscript index d73a79478..21c388bb9 100644 --- a/Completion/User/_enscript +++ b/Completion/User/_enscript @@ -1,8 +1,9 @@ #compdef enscript -local state context line opt_args +local state context line curcontext="$curcontext" +typeset -A opt_args -_arguments -s \ +_arguments -C -s \ '( -2 --columns)-1' \ '(-1 --columns)-2' \ '(-1 -2 )--columns=:columns:' \ @@ -126,7 +127,7 @@ _arguments -s \ '--ul-gray=:underlay text'\''s gray level:(.8)' \ '--ul-position=:underlay text'\''s position:(+0+0 -0-0)' \ '--ul-style=:underlay text'\''s style:(outline filled)' \ - '*:filename:_files' + '*:filename:_files' && return 0 case "$state" in commandline) -- cgit 1.4.1