about summary refs log tree commit diff
path: root/Completion/User/_man
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2000-09-03 21:45:37 +0000
committerClint Adams <clint@users.sourceforge.net>2000-09-03 21:45:37 +0000
commit6dd5fc9cef8328342aca4e747cc3a8526706e7f5 (patch)
tree997683cb4c8009d4d04ca592622873e4c0ca34c6 /Completion/User/_man
parentf1135dfd5f3ca229b1d8adcacdd10b01176ca7c7 (diff)
downloadzsh-6dd5fc9cef8328342aca4e747cc3a8526706e7f5.tar.gz
zsh-6dd5fc9cef8328342aca4e747cc3a8526706e7f5.tar.xz
zsh-6dd5fc9cef8328342aca4e747cc3a8526706e7f5.zip
12728: man -l / --local-file completes _files
Diffstat (limited to 'Completion/User/_man')
-rw-r--r--Completion/User/_man4
1 files changed, 4 insertions, 0 deletions
diff --git a/Completion/User/_man b/Completion/User/_man
index 2dae425ee..d96793e9c 100644
--- a/Completion/User/_man
+++ b/Completion/User/_man
@@ -4,6 +4,10 @@ setopt localoptions rcexpandparam
 
 local rep expl star approx mrd
 
+if [[ $words[1] == man ]] && (( $words[(I)-l] + $words[(I)--local-file] )); then
+  _files || return 0
+fi
+
 if [[ $compstate[pattern_match] != [^*] ]]; then
   # If a string other than *, we just want correction, so no `*'.
   star='*'