about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-09-27 13:32:35 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-09-27 13:32:35 +0000
commitf94eb407c49d1e721f634bae3c0cca6034c3319b (patch)
treea5cffb4034a6c2905d8869c720815e6f574d40d4 /Completion
parent7718446be8995e3bbc5ced601b1fe2f6649acdeb (diff)
downloadzsh-f94eb407c49d1e721f634bae3c0cca6034c3319b.tar.gz
zsh-f94eb407c49d1e721f634bae3c0cca6034c3319b.tar.xz
zsh-f94eb407c49d1e721f634bae3c0cca6034c3319b.zip
zsh-workers/8062
Diffstat (limited to 'Completion')
-rw-r--r--Completion/User/_man10
1 files changed, 8 insertions, 2 deletions
diff --git a/Completion/User/_man b/Completion/User/_man
index 88d2118c0..ec2af00f0 100644
--- a/Completion/User/_man
+++ b/Completion/User/_man
@@ -14,12 +14,18 @@ if [[ -n $_comp_correct ]]; then
   approx="(#a${_comp_correct})"
 fi
 
-(( $#manpath )) || manpath=$(manpath 2>/dev/null) ||
+if (( ! $#manpath )); then
+  local mp=$(manpath 2>/dev/null)
+  [[ "$mp" == *:* ]] && mp=( ${(s.:.)mp} )
+  manpath=( $mp )
+fi
+
+(( $#manpath )) ||
   manpath=( /usr/man(-/N) /(opt|usr)/(dt|share|X11R6|local)/(cat|)man(-/N) )
 
 # `sman' is the SGML manual directory for Solaris 7.
 
-if [[ $words[2] = (<->*|ln) ]]; then
+if [[ $words[2] = (<->*|l|n) ]]; then
   rep=(
   $manpath/(sman|man|cat)${words[2]}/${~approx}$PREFIX${~star}$SUFFIX.<->*(N:t) )
 else