diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2009-04-16 10:03:25 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2009-04-16 10:03:25 +0000 |
commit | 9961acc5662c5150d342162fad246fd1597c1029 (patch) | |
tree | f81e84016ad1fb7d88043b13a4b972c88834c996 /Completion/Unix | |
parent | 28dac24fc69718479c7a83e20689542567aa2c15 (diff) | |
download | zsh-9961acc5662c5150d342162fad246fd1597c1029.tar.gz zsh-9961acc5662c5150d342162fad246fd1597c1029.tar.xz zsh-9961acc5662c5150d342162fad246fd1597c1029.zip |
Alexey I. Froloff: 26830: stripping of manual page suffixes in completion
Diffstat (limited to 'Completion/Unix')
-rw-r--r-- | Completion/Unix/Command/_man | 4 |
1 files changed, 2 insertions, 2 deletions
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 } |