summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2009-04-16 10:03:25 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2009-04-16 10:03:25 +0000
commit9961acc5662c5150d342162fad246fd1597c1029 (patch)
treef81e84016ad1fb7d88043b13a4b972c88834c996
parentEvgenii Terechkov: 26831: filter out redundant information in _screen (diff)
downloadzsh-9961acc5662c5150d342162fad246fd1597c1029.tar
zsh-9961acc5662c5150d342162fad246fd1597c1029.tar.gz
zsh-9961acc5662c5150d342162fad246fd1597c1029.tar.bz2
zsh-9961acc5662c5150d342162fad246fd1597c1029.tar.lz
zsh-9961acc5662c5150d342162fad246fd1597c1029.tar.xz
zsh-9961acc5662c5150d342162fad246fd1597c1029.tar.zst
zsh-9961acc5662c5150d342162fad246fd1597c1029.zip
Alexey I. Froloff: 26830: stripping of manual page suffixes in completion
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Unix/Command/_man4
2 files changed, 6 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 39079f902..cd6e8d71b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2009-04-16 Peter Stephenson <pws@csr.com>
+ * Alexey I. Froloff: 26830: Completion/Unix/Command/_man: fix
+ stripping of manual page suffixes.
+
* Evgenii Terechkov: 26831: Completion/Unix/Command/_screen:
filter out redundant output.
@@ -11550,5 +11553,5 @@
*****************************************************
* This is used by the shell to define $ZSH_PATCHLEVEL
-* $Revision: 1.4649 $
+* $Revision: 1.4650 $
*****************************************************
diff --git a/Completion/Unix/Command/_man b/Completion/Unix/Command/_man
index 8f28d34eb..dc5bb1fec 100644
--- a/Completion/Unix/Command/_man
+++ b/Completion/Unix/Command/_man
@@ -98,9 +98,9 @@ _man_pages() {
if ((CURRENT > 2)) ||
! zstyle -t ":completion:${curcontext}:manuals.$sect" insert-sections
then
- compadd "$@" - ${pages%.(?|<->*(|.gz|.bz2|.Z))}
+ compadd "$@" - ${pages%.((?|<->*)(|.gz|.bz2|.Z))}
else
- compadd "$@" -P "$sopt$sect " - ${pages%.(?|<->*(|.gz|.bz2|.Z))}
+ compadd "$@" -P "$sopt$sect " - ${pages%.((?|<->*)(|.gz|.bz2|.Z))}
fi
}