From e6282df1155e8d9b08b2e518a452c1997973f1ce Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Fri, 12 Nov 1999 15:28:24 +0000 Subject: manual/8630 --- Completion/X/_xmodmap | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'Completion/X/_xmodmap') diff --git a/Completion/X/_xmodmap b/Completion/X/_xmodmap index 4e7a8bfc8..d8ba420ce 100644 --- a/Completion/X/_xmodmap +++ b/Completion/X/_xmodmap @@ -1,6 +1,6 @@ #compdef xmodmap -local state line ret=1 +local context state line ret=1 typeset -A opt_args _x_arguments \ @@ -82,9 +82,11 @@ if [[ -n "$state" ]]; then [[ "$what" = *ksym* ]] && _x_keysym "$suf[@]" && ret=0 else - _description expl command - compadd "$expl[@]" -S ' ' keycode keysym clear add remove && ret=0 - compadd "$expl[@]" -S ' = ' pointer && ret=0 + if _tags any commands; then + _description expl command + compadd "$expl[@]" -S ' ' keycode keysym clear add remove && ret=0 + compadd "$expl[@]" -S ' = ' pointer && ret=0 + fi fi fi -- cgit 1.4.1