summaryrefslogtreecommitdiff
path: root/Completion/Unix/Command/_man
diff options
context:
space:
mode:
authorAxel Beckert <abe@deuxchevaux.org>2020-02-14 01:58:20 +0100
committerAxel Beckert <abe@deuxchevaux.org>2020-02-14 01:58:20 +0100
commitbfc5d42735c1660263904ec5254cccf539a0a458 (patch)
tree9bbb81b4a53941427e6f9e65ae55027d9108df8c /Completion/Unix/Command/_man
parent74561cc51b8867e43cb2937ab2edfb36e2a829bf (diff)
parent643de931640e01aa246723d2038328ef33737965 (diff)
downloadzsh-bfc5d42735c1660263904ec5254cccf539a0a458.tar.gz
zsh-bfc5d42735c1660263904ec5254cccf539a0a458.zip
Merge tag 'zsh-5.7.1-test-3' into debian
Test release: 5.7.1-test-3
Diffstat (limited to 'Completion/Unix/Command/_man')
-rw-r--r--Completion/Unix/Command/_man9
1 files changed, 8 insertions, 1 deletions
diff --git a/Completion/Unix/Command/_man b/Completion/Unix/Command/_man
index 41ae85a1f..7d55201e3 100644
--- a/Completion/Unix/Command/_man
+++ b/Completion/Unix/Command/_man
@@ -381,7 +381,12 @@ _man() {
(( $#sects )) || return 1
- _tags manuals.${^sects}
+ if [[ $PREFIX$SUFFIX == */* ]]; then
+ _tags manuals.${^sects} files
+ else
+ _tags manuals.${^sects}
+ fi
+
while _tags; do
for sect_dirname in $sects; do
d=$sect_dirname
@@ -390,6 +395,8 @@ _man() {
_requested manuals.$sect_dirname expl "manual page, section $d" _man_pages &&
ret=0
done
+ [[ $PREFIX$SUFFIX == */* ]] &&
+ _requested files expl directory _files -/ && ret=0
(( ret )) || return 0
done
## To fall back to other sections' manpages when completing filenames, like