summary refs log tree commit diff
path: root/Completion/Unix/Command/_man
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2005-08-15 17:11:17 +0000
committerClint Adams <clint@users.sourceforge.net>2005-08-15 17:11:17 +0000
commitb9d42d6a592603d34cb8b03813d1604c59b6912e (patch)
tree9afdd21d22ba7b5bc1dbd98a93eaa66157594f89 /Completion/Unix/Command/_man
parentbce534d95722bbd9251e24601e36ad42f43ee255 (diff)
downloadzsh-b9d42d6a592603d34cb8b03813d1604c59b6912e.tar.gz
zsh-b9d42d6a592603d34cb8b03813d1604c59b6912e.tar.xz
zsh-b9d42d6a592603d34cb8b03813d1604c59b6912e.zip
21565: better handle uncompresed manpages with .[0-9] in their names.
Diffstat (limited to 'Completion/Unix/Command/_man')
-rw-r--r--Completion/Unix/Command/_man4
1 files changed, 2 insertions, 2 deletions
diff --git a/Completion/Unix/Command/_man b/Completion/Unix/Command/_man
index a7b014d1b..4b7669010 100644
--- a/Completion/Unix/Command/_man
+++ b/Completion/Unix/Command/_man
@@ -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 "$@"