From 7a0415cfd70a02b2280d27556c6c54cef1c86e1a Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Thu, 15 Apr 1999 18:18:42 +0000 Subject: zsh-3.1.5-pws-11 --- Completion/User/_man | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Completion/User/_man') diff --git a/Completion/User/_man b/Completion/User/_man index 8204fba0b..67d59f24a 100644 --- a/Completion/User/_man +++ b/Completion/User/_man @@ -2,10 +2,10 @@ setopt localoptions rcexpandparam local rep -if [[ $2 = (<->*|ln) ]]; then - rep=( $manpath/(man|cat)$2/$PREFIX*$SUFFIX.<->*(N:t:r) ) +if [[ $words[2] = (<->*|ln) ]]; then + rep=( $manpath/(man|cat)${words[2]}/$PREFIX*$SUFFIX.<->*(N:t:r) ) else rep=( $manpath/(man|cat)*/$PREFIX*$SUFFIX.<->*(N:t:r) ) fi -(( $#rep )) && compadd -m $rep +(( $#rep )) && compadd - $rep -- cgit 1.4.1