diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-09-13 16:17:08 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-09-13 16:17:08 +0000 |
commit | d2b14d6baa162305a2b1678fddb05b2d152a3cac (patch) | |
tree | 1266820c864db9dd7a7ac471f7cc4e02f29d7d1a /Completion/User/_man | |
parent | 5dcad54926186c572d7dd653c1d621246048479f (diff) | |
download | zsh-d2b14d6baa162305a2b1678fddb05b2d152a3cac.tar.gz zsh-d2b14d6baa162305a2b1678fddb05b2d152a3cac.tar.xz zsh-d2b14d6baa162305a2b1678fddb05b2d152a3cac.zip |
zsh-3.1.6-pws-4 zsh-3.1.6-pws-4
Diffstat (limited to 'Completion/User/_man')
-rw-r--r-- | Completion/User/_man | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/Completion/User/_man b/Completion/User/_man index 8ae64e239..ebe9a432e 100644 --- a/Completion/User/_man +++ b/Completion/User/_man @@ -1,6 +1,6 @@ #compdef man -setopt localoptions rcexpandparam extendedglob +setopt localoptions rcexpandparam local rep expl star approx @@ -14,14 +14,12 @@ if [[ -n $_comp_correct ]]; then approx="(#a${_comp_correct})" fi -# `sman' is the SGML manual directory for Solaris 7. - if [[ $words[2] = (<->*|ln) ]]; then rep=( - $manpath/(sman|man|cat)${words[2]}/${~approx}$PREFIX${~star}$SUFFIX.<->*(N:t) ) + $manpath/(man|cat)${words[2]}/${~approx}$PREFIX${~star}$SUFFIX.<->*(N:t:r) ) else - rep=( $manpath/(sman|man|cat)*/${~approx}$PREFIX${~star}$SUFFIX.<->*(N:t) ) + rep=( $manpath/(man|cat)*/${~approx}$PREFIX${~star}$SUFFIX.<->*(N:t:r) ) fi _description expl 'manual page' -(( $#rep )) && compadd "$expl[@]" - ${rep%%.[^.]##(.gz|)} +(( $#rep )) && compadd "$expl[@]" - $rep |