1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2026-01-04 09:01:06 +01:00

not quite posted, exactly: improvement to previous _man change

This commit is contained in:
Peter Stephenson 2010-10-21 19:29:09 +00:00
parent f2081c6bc3
commit 27a317b168
2 changed files with 6 additions and 5 deletions

View file

@ -25,9 +25,10 @@ _man() {
(( $#_manpath )) ||
_manpath=( /usr/man(-/) /(opt|usr)/(pkg|dt|share|X11R6|local)/(cat|)man(-/) )
if (( $words[(I)-M] )); then
integer index=$words[(I)-M]
if (( index )); then
local opt
opt=$words[(( $words[(I)-M]+1 ))]
opt=$words[index+1]
_manpath=($_manpath $opt)
fi