1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-19 13:33:52 +01:00

21565: better handle uncompresed manpages with .[0-9] in their names.

This commit is contained in:
Clint Adams 2005-08-15 17:11:17 +00:00
parent bce534d957
commit b9d42d6a59
2 changed files with 7 additions and 2 deletions

@ -1,3 +1,8 @@
2005-08-15 Clint Adams <clint@zsh.org>
* 21565: Completion/Unix/Command/_man: better handle uncompresed
manpages with .[0-9] in their names.
2005-08-15 Wayne Davison <wayned@users.sourceforge.net>
* 21609: Src/glob.c: fixed the readlink() call in statfullpath().

@ -82,7 +82,7 @@ _man_pages() {
pages=( ${(M)dirs:#*$sect/} )
compfiles -p pages '' '' "$matcher" '' dummy '*'
pages=( ${^~pages}(N:t:r) )
pages=( ${^~pages}(N:t) )
(($#mrd)) && pages[$#pages+1]=($(awk $awk $mrd))
@ -90,7 +90,7 @@ _man_pages() {
# beginning with .<->: that handles problem cases like files called
# `POSIX.1.5'.
compadd "$@" - ${pages%.(?|<->*)}
compadd "$@" - ${pages%.(?|<->*(|.gz|.bz2|.Z))}
}
_man "$@"