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:
parent
f2081c6bc3
commit
27a317b168
2 changed files with 6 additions and 5 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue