diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-11-12 15:28:24 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-11-12 15:28:24 +0000 |
commit | e6282df1155e8d9b08b2e518a452c1997973f1ce (patch) | |
tree | b0c8ed7e8512cc4397ae7df6d138ea66147565b3 /Completion/User/_gprof | |
parent | 167b0ae3b98938f75287dcf2e112d41a03532c5f (diff) | |
download | zsh-e6282df1155e8d9b08b2e518a452c1997973f1ce.tar.gz zsh-e6282df1155e8d9b08b2e518a452c1997973f1ce.tar.xz zsh-e6282df1155e8d9b08b2e518a452c1997973f1ce.zip |
manual/8630
Diffstat (limited to 'Completion/User/_gprof')
-rw-r--r-- | Completion/User/_gprof | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Completion/User/_gprof b/Completion/User/_gprof index 211a7a15f..cbc362331 100644 --- a/Completion/User/_gprof +++ b/Completion/User/_gprof @@ -1,6 +1,6 @@ #compdef gprof -local state line ret=1 +local context state line ret=1 typeset -A opt_args _arguments -s -{a,b,c,D,h,i,l,L,s,T,v,w,x,y,z} \ @@ -17,6 +17,8 @@ _arguments -s -{a,b,c,D,h,i,l,L,s,T,v,w,x,y,z} \ if [[ -n "$state" ]]; then local cmd pair expl + _tags "${context}" functions || return 1 + [[ "$state" = pair ]] && pair=yes if [[ $#line -gt 1 ]]; then @@ -46,7 +48,7 @@ if [[ -n "$state" ]]; then else _description expl function fi - compadd -M 'r:|_=* r:|=*' - "$_gprof_funcs[@]" && ret=0 + compadd "$expl[@]" -M 'r:|_=* r:|=*' - "$_gprof_funcs[@]" && ret=0 else return 1 fi |