about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--Completion/User/_man9
1 files changed, 1 insertions, 8 deletions
diff --git a/Completion/User/_man b/Completion/User/_man
index fd5702227..0c148a518 100644
--- a/Completion/User/_man
+++ b/Completion/User/_man
@@ -14,14 +14,7 @@ if [[ -n $_comp_correct ]]; then
   approx="(#a${_comp_correct})"
 fi
 
-if (( ! $#manpath )); then
-  local mp
-  mp=($(manpath 2>/dev/null))
-  [[ "$mp" == *:* ]] && mp=( ${(s.:.)mp} )
-  manpath=( $mp )
-fi
-
-(( $#manpath )) ||
+(( $#manpath )) || manpath=( ${(s.:.)$(manpath 2>/dev/null)} ) ||
   manpath=( /usr/man(-/N) /(opt|usr)/(dt|share|X11R6|local)/(cat|)man(-/N) )
 
 # `sman' is the SGML manual directory for Solaris 7.