From 35b2633ad941966f5fca07b625a594a5b68c0fdb Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Mon, 15 Nov 1999 12:01:46 +0000 Subject: manual/8639 --- Completion/X/_xmodmap | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'Completion/X/_xmodmap') diff --git a/Completion/X/_xmodmap b/Completion/X/_xmodmap index d8ba420ce..e1594b949 100644 --- a/Completion/X/_xmodmap +++ b/Completion/X/_xmodmap @@ -1,9 +1,9 @@ #compdef xmodmap -local context state line ret=1 +local curcontext="$curcontext" state line ret=1 typeset -A opt_args -_x_arguments \ +_x_arguments -C \ -{help,grammar,verbose,quiet} \ '-n[only show what would be done]' \ '*-e[specify expression]:expression:->expr' \ @@ -82,8 +82,7 @@ if [[ -n "$state" ]]; then [[ "$what" = *ksym* ]] && _x_keysym "$suf[@]" && ret=0 else - if _tags any commands; then - _description expl command + if _wanted commands expl command; then compadd "$expl[@]" -S ' ' keycode keysym clear add remove && ret=0 compadd "$expl[@]" -S ' = ' pointer && ret=0 fi -- cgit 1.4.1