1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-10-03 01:11:37 +02:00

12728: man -l / --local-file completes _files

This commit is contained in:
Clint Adams 2000-09-03 21:45:37 +00:00
parent f1135dfd5f
commit 6dd5fc9cef
2 changed files with 9 additions and 0 deletions

@ -1,3 +1,8 @@
2000-09-03 Clint Adams <schizo@debian.org>
* 12728: Completion/User/_man: complete _files instead of
manpages if -l or --local-file is present on the commandline.
2000-09-02 Bart Schaefer <schaefer@zsh.org>
* 12725: Util/helpfiles: Recognize more end-of-page patterns, and

@ -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='*'